/* * @(#)config.h 8.28 (Sleepycat) 5/2/98 * * Generated by hand. */ /* Define to empty if the keyword does not work. */ /* #undef const */ /* Define if your struct stat has st_blksize. */ /* #undef HAVE_ST_BLKSIZE */ /* Define to `int' if doesn't define. */ /* #undef mode_t */ /* Define to `long' if doesn't define. */ /* #undef off_t */ /* Define to `int' if doesn't define. */ /* #undef pid_t */ /* Define to `unsigned' if doesn't define. */ /* #undef size_t */ /* Define if the `S_IS*' macros in do not work properly. */ /* #undef STAT_MACROS_BROKEN */ /* Define if you have the ANSI C header files. */ #define STDC_HEADERS 1 /* Define if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel and VAX). */ /* #undef WORDS_BIGENDIAN */ /* Define to `int' if doesn't define. */ typedef int ssize_t; /* Define if you want a debugging version. */ /* #undef DEBUG */ #if defined(_DEBUG) #if !defined(DEBUG) #define DEBUG 1 #endif #endif /* Define if you want a version with run-time diagnostic checking. */ /* #undef DIAGNOSTIC */ /* Define if you have sigfillset (and sigprocmask). */ /* #undef HAVE_SIGFILLSET */ /* Define if building on AIX, HP, Solaris to get big-file environment. */ /* #undef HAVE_FILE_OFFSET_BITS */ #ifdef HAVE_FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 #endif /* Define if you have spinlocks. */ #define HAVE_SPINLOCKS 1 /* Define if you want to use mc68020/gcc assembly spinlocks. */ /* #undef HAVE_ASSEM_MC68020_GCC */ /* Define if you want to use parisc/gcc assembly spinlocks. */ /* #undef HAVE_ASSEM_PARISC_GCC */ /* Define if you want to use sco/cc assembly spinlocks. */ /* #undef HAVE_ASSEM_SCO_CC */ /* Define if you want to use sparc/gcc assembly spinlocks. */ /* #undef HAVE_ASSEM_SPARC_GCC */ /* Define if you want to use uts4/cc assembly spinlocks. */ /* #undef HAVE_ASSEM_UTS4_CC */ /* Define if you want to use x86/gcc assembly spinlocks. */ /* #undef HAVE_ASSEM_X86_GCC */ /* Define if you have the AIX _check_lock spinlocks. */ /* #undef HAVE_FUNC_AIX */ /* Define if you have the OSF1 or HPPA msemaphore spinlocks. */ /* #undef HAVE_FUNC_MSEM */ /* Define if you have the SGI abilock_t spinlocks. */ /* #undef HAVE_FUNC_SGI */ /* Define if you have the ReliantUNIX spinlock_t spinlocks. */ /* #undef HAVE_FUNC_RELIANT */ /* Define if you have the Solaris mutex_t spinlocks. */ /* #undef HAVE_FUNC_SOLARIS */ /* Define if your sprintf returns a pointer, not a length. */ /* #undef SPRINTF_RET_CHARPNT */ /* Define if you have the directio function. */ /* #undef HAVE_DIRECTIO */ /* Define if you have the getcwd function. */ /* #undef HAVE_GETCWD */ /* Define if you have the getopt function. */ /* #undef HAVE_GETOPT */ extern int getopt(int, char * const *, const char *); /* Define if you have the getuid function. */ /* #undef HAVE_GETUID */ /* Define if you have the memcmp function. */ #define HAVE_MEMCMP 1 /* Define if you have the memcpy function. */ #define HAVE_MEMCPY 1 /* Define if you have the memmove function. */ #define HAVE_MEMMOVE 1 /* Define if you have the mmap function. */ /* #undef HAVE_MMAP */ /* Define if you have the raise function. */ #define HAVE_RAISE 1 /* Define if you have the select function. */ /* #undef HAVE_SELECT */ /* Define if you have the shmget function. */ /* #undef HAVE_SHMGET */ /* Define if you have the snprintf function. */ #define HAVE_SNPRINTF 1 /* Define if you have the strerror function. */ #define HAVE_STRERROR 1 /* Define if you have the strsep function. */ /* #undef HAVE_STRSEP */ /* Define if you have the sysconf function. */ /* #undef HAVE_SYSCONF */ /* Define if you have the vsnprintf function. */ #define HAVE_VSNPRINTF 1 /* Define if you have the header file. */ /* #undef HAVE_DIRENT_H */ /* Define if you have the header file. */ /* #undef HAVE_NDIR_H */ /* Define if you have the header file. */ /* #undef HAVE_SYS_DIR_H */ /* Define if you have the header file. */ /* #undef HAVE_SYS_NDIR_H */ /* Define if you have the header file. */ /* #undef HAVE_SYS_SELECT_H */ /* Define if you have the header file. */ /* #undef HAVE_SYS_TIME_H */ /* * XXX * The following is not part of the automatic configuration setup, * but provides the information necessary to build DB. */ #include #include #include #include #include #include #include #include #include #include #include #include #if defined(__cplusplus) #include #endif #define WIN32_LEAN_AND_MEAN #include #include "queue.h" #include "shqueue.h" #define snprintf _snprintf #define vsnprintf _vsnprintf #define NO_SYSTEM_INCLUDES /* * This is a grievous hack -- once we've included windows.h, we have no choice * but to use ANSI-style varargs (because it pulls in stdarg.h for us). DB's * code decides which type of varargs to use based on the state of __STDC__. * Sensible. Unfortunately, Microsoft's compiler _doesn't_ define __STDC__ * unless you invoke it with arguments turning OFF all vendor extensions. Even * more unfortunately, if we do that, it fails to parse windows.h!!!!! So, we * define __STDC__ here, after windows.h comes in. Note: the compiler knows * we've defined it, and starts enforcing strict ANSI compilance from this point * on. */ #define __STDC__ 1