Benjamin Kuit's latest mysql mods. issue with "make proto" needs to be
[samba.git] / source3 / passdb / sampassdb.c
index a4c981b16058b4caee8c97440f9fad53a7282895..e80d157ec05547111eb1fad39f21ad86d8eb2c0d 100644 (file)
@@ -70,7 +70,7 @@ BOOL initialise_sam_password_db(void)
   pwdb_ops =  nisplus_initialise_sam_password_db();
 #elif defined(WITH_LDAP)
   pwdb_ops = ldap_initialise_sam_password_db();
-#elif defined(WITH_MYSQLSAM)
+#elif defined(HAVE_MYSQL_H) && defined(WITH_MYSQLSAM)
   pwdb_ops = mysql_initialise_sam_password_db();
 #elif defined(USE_SMBPASS_DB)
   pwdb_ops = file_initialise_sam_password_db();