diff options
author | Jeremy Allison <jra@samba.org> | 2003-10-02 18:22:48 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-10-02 18:22:48 +0000 |
commit | 4ed89be00f0239179182da04b6c3d017a639664d (patch) | |
tree | a46f20067f18b8ceda3c6c0aca5d4cfe3a04fb45 /source3/tdb | |
parent | e8fb38d8dda4fe44324c454c88e3e58d2e877a56 (diff) | |
download | samba-4ed89be00f0239179182da04b6c3d017a639664d.tar.gz samba-4ed89be00f0239179182da04b6c3d017a639664d.tar.bz2 samba-4ed89be00f0239179182da04b6c3d017a639664d.zip |
Portability fixes from schmitz@hp.com (Joachim Schmitz). Bug #549.
Jeremy.
(This used to be commit 6defe43e6d48619cee31b6c7fc602973e8eeef3f)
Diffstat (limited to 'source3/tdb')
-rw-r--r-- | source3/tdb/tdbback.c | 11 | ||||
-rw-r--r-- | source3/tdb/tdbbackup.c | 12 |
2 files changed, 23 insertions, 0 deletions
diff --git a/source3/tdb/tdbback.c b/source3/tdb/tdbback.c index 744cface55..9466c29991 100644 --- a/source3/tdb/tdbback.c +++ b/source3/tdb/tdbback.c @@ -18,6 +18,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifdef STANDALONE +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include <errno.h> #include <stdlib.h> #include <stdio.h> @@ -27,10 +32,16 @@ #include <fcntl.h> #include <time.h> #include <sys/mman.h> + #include <sys/stat.h> #include <sys/time.h> #include <ctype.h> #include <signal.h> + +#else +#include "includes.h" +#endif + #include "tdb.h" static int failed; diff --git a/source3/tdb/tdbbackup.c b/source3/tdb/tdbbackup.c index 0eaf6b6c0b..1a0e1c1588 100644 --- a/source3/tdb/tdbbackup.c +++ b/source3/tdb/tdbbackup.c @@ -41,6 +41,11 @@ */ +#ifdef STANDALONE +#if HAVE_CONFIG_H +#include <config.h> +#endif + #include <errno.h> #include <stdlib.h> #include <stdio.h> @@ -54,6 +59,13 @@ #include <sys/time.h> #include <ctype.h> #include <signal.h> + +#else + +#include "includes.h" + +#endif + #include "tdb.h" #include "tdbback.h" |