diff options
author | Luke Leighton <lkcl@samba.org> | 1999-03-03 20:48:48 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-03-03 20:48:48 +0000 |
commit | 00d86ccb1cceda0381383420bdbfd452456c7545 (patch) | |
tree | 758e736573f21b3a9882ffcbf3335800f29a120b /source3/param/loadparm.c | |
parent | 81f866db3ab86a27dc93148676da6c96b6e56cbf (diff) | |
download | samba-00d86ccb1cceda0381383420bdbfd452456c7545.tar.gz samba-00d86ccb1cceda0381383420bdbfd452456c7545.tar.bz2 samba-00d86ccb1cceda0381383420bdbfd452456c7545.zip |
Benjamin Kuit's latest mysql mods. issue with "make proto" needs to be
resolved.
(This used to be commit d59a2e669aed7ee33fdca8b8ec126b1c0a984981)
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r-- | source3/param/loadparm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 845c2bd4e8..ccb314b2f1 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -231,7 +231,7 @@ typedef struct BOOL bNTPipeSupport; BOOL bStatCache; BOOL bKernelOplocks; -#if defined(WITH_MYSQL) || defined(WITH_MYSQLSAM) +#if defined(HAVE_MYSQL_H) && defined(WITH_MYSQLSAM) char *sMysqlDatabase; char *sMysqlTable; char *sMysqlUser; @@ -754,14 +754,14 @@ static struct parm_struct parm_table[] = {"ldap passwd file", P_STRING, P_GLOBAL, &Globals.szLdapPasswdFile, NULL, NULL, 0}, #endif /* WITH_LDAP */ -#if defined(WITH_MYSQL) || defined(WITH_MYSQLSAM) +#if defined(HAVE_MYSQL_H) && defined(WITH_MYSQLSAM) {"MySQL Options", P_SEP, P_SEPARATOR}, {"mysql host", P_STRING, P_GLOBAL, &Globals.sMysqlHost, NULL, NULL, 0}, {"mysql user", P_STRING, P_GLOBAL, &Globals.sMysqlUser, NULL, NULL, 0}, {"mysql pass file", P_STRING, P_GLOBAL, &Globals.sMysqlPassFile, NULL, NULL, 0}, {"mysql database", P_STRING, P_GLOBAL, &Globals.sMysqlDatabase, NULL, NULL, 0}, {"mysql table", P_STRING, P_GLOBAL, &Globals.sMysqlTable, NULL, NULL, 0}, -#endif /* WITH_MYSQL */ +#endif /* MYSQL */ {"Miscellaneous Options", P_SEP, P_SEPARATOR}, @@ -986,7 +986,7 @@ static void init_globals(void) */ Globals.bKernelOplocks = True; -#if defined(WITH_MYSQL) || defined(WITH_MYSQLSAM) +#if defined(HAVE_MYSQL_H) && defined(WITH_MYSQLSAM) string_set(&Globals.sMysqlHost,"localhost"); string_set(&Globals.sMysqlUser,"root"); string_set(&Globals.sMysqlPassFile,NULL); @@ -1352,7 +1352,7 @@ FN_LOCAL_INTEGER(lp_printing,iPrinting) FN_LOCAL_CHAR(lp_magicchar,magic_char) -#if defined(WITH_MYSQL) || defined(WITH_MYSQLSAM) +#if defined(HAVE_MYSQL_H) && defined(WITH_MYSQLSAM) FN_GLOBAL_STRING(lp_mysql_host,&Globals.sMysqlHost) FN_GLOBAL_STRING(lp_mysql_user,&Globals.sMysqlUser) FN_GLOBAL_STRING(lp_mysql_passfile,&Globals.sMysqlPassFile) |