diff options
Diffstat (limited to 'include/sysconf.h.in')
-rw-r--r-- | include/sysconf.h.in | 238 |
1 files changed, 96 insertions, 142 deletions
diff --git a/include/sysconf.h.in b/include/sysconf.h.in index 5f6137deb..5acfa3d74 100644 --- a/include/sysconf.h.in +++ b/include/sysconf.h.in @@ -1,168 +1,122 @@ -/* include/sysconf.h.in. Generated from configure.in by autoheader. */ +#ifndef _SYSCONF_H_ +#define _SYSCONF_H_ -/* "Default umask Permissions" */ #undef DEFUMASK - -/* "No prefix needed for dlopen" */ -#undef DL_PREFIX - -/* "Has sys/types.h" */ -#undef HAS_SYS_TYPES_H - -/* "" */ +#undef HAVE_SYS_TYPES_H +#undef HAVE_STDINT_H +#undef HAVE_STDDEF_H #undef HAVE_BACKTRACE - -/* Define to 1 if you have the `fork' function. */ -#undef HAVE_FORK - -/* Define to 1 if you have the `gethostbyname' function. */ #undef HAVE_GETHOSTBYNAME - -/* Define to 1 if you have the `gethostbyname_r' function. */ -#undef HAVE_GETHOSTBYNAME_R - -/* Define to 1 if you have the `gettimeofday' function. */ #undef HAVE_GETTIMEOFDAY - -/* Define to 1 if you have the <inttypes.h> header file. */ -#undef HAVE_INTTYPES_H - -/* Define to 1 if you have the <memory.h> header file. */ -#undef HAVE_MEMORY_H - -/* Define to 1 if you have the `setgrent' function. */ #undef HAVE_SETGRENT - -/* Define to 1 if you have the <stdint.h> header file. */ -#undef HAVE_STDINT_H - -/* Define to 1 if you have the <stdlib.h> header file. */ -#undef HAVE_STDLIB_H - -/* Define to 1 if you have the `strcasecmp' function. */ #undef HAVE_STRCASECMP - -/* Define to 1 if you have the `stricmp' function. */ #undef HAVE_STRICMP - -/* "" */ #undef HAVE_STRINGS_H - -/* Define to 1 if you have the <string.h> header file. */ -#undef HAVE_STRING_H - -/* Define to 1 if you have the `strlcat' function. */ #undef HAVE_STRLCAT - -/* Define to 1 if you have the `strlcpy' function. */ #undef HAVE_STRLCPY - -/* "" */ #undef HAVE_SYS_SELECT_H - -/* Define to 1 if you have the <sys/stat.h> header file. */ -#undef HAVE_SYS_STAT_H - -/* Define to 1 if you have the <sys/types.h> header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define to 1 if you have the `umask' function. */ #undef HAVE_UMASK - -/* Define to 1 if you have the <unistd.h> header file. */ -#undef HAVE_UNISTD_H - -/* va_list as array */ #undef HAVE_VA_LIST_AS_ARRAY - -/* "Has mysql/mysql.h" */ -#undef MYSQL_HEADER_PREFIX - -/* Define to the address where bug reports for this package should be sent. */ -#undef PACKAGE_BUGREPORT - -/* Define to the full name of this package. */ -#undef PACKAGE_NAME - -/* Define to the full name and version of this package. */ -#undef PACKAGE_STRING - -/* Define to the one symbol short name of this package. */ -#undef PACKAGE_TARNAME - -/* Define to the version of this package. */ -#undef PACKAGE_VERSION - -/* "Run group" */ #undef RUNGROUP - -/* "Binary Dir" */ -#undef SERVICES_BIN - -/* "services bin dir" */ -#undef SERVICES_DIR - -/* The size of a `int', as computed by sizeof. */ -#undef SIZEOF_INT - -/* The size of a `long', as computed by sizeof. */ -#undef SIZEOF_LONG - -/* The size of a `short', as computed by sizeof. */ -#undef SIZEOF_SHORT - -/* "modules not available" */ -#undef STATIC_LINKING - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define to `short' if <sys/types.h> does not define. */ -#undef int16_t - -/* Define to `long' if <sys/types.h> does not define. */ -#undef int32_t - -/* Define to `unsigned short' if <sys/types.h> does not define. */ -#undef u_int16_t - -/* Define to `unsigned long' if <sys/types.h> does not define. */ -#undef u_int32_t - -/* Static config, copy from here to below before running autoheader! */ - -#ifndef BIG_ENDIAN - -/* Big Endian system */ -#undef BIG_ENDIAN - +#define SERVICES_BIN "services" + +#undef HAVE_UINT8_T +#undef HAVE_U_INT8_T +#undef HAVE_INT16_T +#undef HAVE_UINT16_T +#undef HAVE_U_INT16_T +#undef HAVE_INT32_T +#undef HAVE_UINT32_T +#undef HAVE_U_INT32_T + +#ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> #endif - -#ifndef LITTLE_ENDIAN - -/* Little Endian system */ -#undef LITTLE_ENDIAN - +#ifdef HAVE_STDINT_H +# include <stdint.h> #endif - -/** - * NOTE: BIG_ENDIAN and LITTLE_ENDIAN defines should not be left in - * by autoheader as they may be defined or may not be, as such we check - * if there defined before messing with them! - **/ - -#ifdef HAS_SYS_TYPES_H -#include <sys/types.h> +#ifdef HAVE_STDDEF_H +# include <stddef.h> #endif -#ifdef __STRICT_ANSI__ -#include <stdarg.h> -#include <stdio.h> +#ifdef HAVE_UINT8_T +typedef uint8_t uint8; +#else +# ifdef HAVE_U_INT8_T +typedef u_int8_t uint8; +# else +# ifdef _WIN32 +typedef unsigned __int8 uint8; +# else +typedef unsigned short uint8; +# endif +# endif #endif - +#ifdef HAVE_INT16_T typedef int16_t int16; +#else +# ifdef _WIN32 +typedef signed __int16 int16; +# else +typedef int int16; +# endif +#endif + +#ifdef HAVE_UINT16_T +typedef uint16_t uint16; +#else +# ifdef HAVE_U_INT16_T typedef u_int16_t uint16; +# else +# ifdef _WIN32 +typedef unsigned __int16 uint16; +# else +typedef unsigned int uint16; +# endif +# endif +#endif + +#ifdef HAVE_INT32_T typedef int32_t int32; +#else +# ifdef _WIN32 +typedef signed __int32 int32; +# else +typedef long int32; +# endif +#endif + +#ifdef HAVE_UINT32_T +typedef uint32_t uint32; +#else +# ifdef HAVE_U_INT32_T typedef u_int32_t uint32; +# else +# ifdef _WIN32 +typedef unsigned __int32 uint32; +# else +typedef unsigned long uint32; +# endif +# endif +#endif + +#ifdef _WIN32 +# ifdef MSVCPP +# define snprintf _snprintf +# endif +# define popen _popen +# define pclose _pclose +# define ftruncate _chsize +# ifdef MSVCPP +# define PATH_MAX MAX_PATH +# endif +# define MAXPATHLEN MAX_PATH +# define bzero(buf, size) memset(buf, 0, size) +# ifdef MSVCPP +# define strcasecmp stricmp +# endif +# define sleep(x) Sleep(x * 1000) +#endif +#endif |