diff options
Diffstat (limited to 'src/plugins/kdb/db2/libdb2/include')
| -rw-r--r-- | src/plugins/kdb/db2/libdb2/include/config.h | 23 | ||||
| -rw-r--r-- | src/plugins/kdb/db2/libdb2/include/db-config.h | 17 | ||||
| -rw-r--r-- | src/plugins/kdb/db2/libdb2/include/db-config.h.in | 16 | ||||
| -rw-r--r-- | src/plugins/kdb/db2/libdb2/include/db-int.h | 2 |
4 files changed, 41 insertions, 17 deletions
diff --git a/src/plugins/kdb/db2/libdb2/include/config.h b/src/plugins/kdb/db2/libdb2/include/config.h new file mode 100644 index 000000000..ed56d13ad --- /dev/null +++ b/src/plugins/kdb/db2/libdb2/include/config.h @@ -0,0 +1,23 @@ +/* This includes autoconf.h and defines u_int32_t. */ +#include "db-config.h" + +#ifndef HAVE_U_INT16_T +#define u_int16_t unsigned short +#endif +#ifndef HAVE_INT16_T +#define int16_t short +#endif + +#ifndef HAVE_INT8_T +#define int8_t signed char +#endif +#ifndef HAVE_U_INT_8_T +#define u_int_8_t unsigned char +#endif +#ifndef HAVE_INT32_T +#define int32_t int +#endif + +#ifndef HAVE_SSIZE_T +#define ssize_t int +#endif diff --git a/src/plugins/kdb/db2/libdb2/include/db-config.h b/src/plugins/kdb/db2/libdb2/include/db-config.h new file mode 100644 index 000000000..0ac7c9163 --- /dev/null +++ b/src/plugins/kdb/db2/libdb2/include/db-config.h @@ -0,0 +1,17 @@ +#include "autoconf.h" + +#ifndef HAVE_U_CHAR +#define u_char unsigned char +#endif + +#ifndef HAVE_U_INT +#define u_int unsigned int +#endif + +#ifndef HAVE_U_LONG +#define u_long unsigned long +#endif + +#ifndef HAVE_U_INT32_T +#define u_int32_t unsigned int +#endif diff --git a/src/plugins/kdb/db2/libdb2/include/db-config.h.in b/src/plugins/kdb/db2/libdb2/include/db-config.h.in deleted file mode 100644 index bcd7991b3..000000000 --- a/src/plugins/kdb/db2/libdb2/include/db-config.h.in +++ /dev/null @@ -1,16 +0,0 @@ -/* include/db-config.h.in. Derived from autoconf-generated config.h.in. */ - -/* Define to empty if the keyword does not work. */ -#undef const - -/* Define to `unsigned' if <sys/types.h> doesn't define. */ -#undef size_t - -#undef u_char -#undef u_int -#undef u_long - -#undef u_int32_t - -/* The number of bytes in a int. */ -#undef SIZEOF_INT diff --git a/src/plugins/kdb/db2/libdb2/include/db-int.h b/src/plugins/kdb/db2/libdb2/include/db-int.h index bbb22925a..8329ee3d0 100644 --- a/src/plugins/kdb/db2/libdb2/include/db-int.h +++ b/src/plugins/kdb/db2/libdb2/include/db-int.h @@ -1,5 +1,5 @@ /*- - * Copyright (c) 1991, 1993 + * Copyright (c) 1991, 1993, 2007 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without |
