From: Marko Kreen Date: Wed, 16 Jun 2010 10:35:12 +0000 (+0300) Subject: Move some portability goo over to libusual. X-Git-Tag: pgbouncer_1_4_rc3~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aef610f0bd47a28b9f73b3eb2121140ab97026fe;p=pgbouncer Move some portability goo over to libusual. --- diff --git a/include/system.h b/include/system.h index cdb0bd9..de3702a 100644 --- a/include/system.h +++ b/include/system.h @@ -42,15 +42,6 @@ #include #endif -/* how to specify array with unknown length */ -#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) -#define FLEX_ARRAY -#elif defined(__GNUC__) -#define FLEX_ARRAY -#else -#define FLEX_ARRAY 1 -#endif - #ifndef UNIX_PATH_MAX #define UNIX_PATH_MAX 128 /* actual sizeof() will be applied later anyway */ #endif @@ -63,21 +54,6 @@ #define INT4OID 23 #define TEXTOID 25 -/* - * Make sure __func__ works. - */ - -#ifndef HAVE_FUNCNAME__FUNC -#define __func__ __FUNCTION__ -#endif - -/* - * Some systems (Solaris) does not define INADDR_NONE - */ -#ifndef INADDR_NONE -#define INADDR_NONE ((unsigned long) -1) -#endif - /* * libc compat functions. */ @@ -89,10 +65,5 @@ static inline char *crypt(const char *p, const char *s) { return NULL; } static inline int lstat(const char *path, struct stat *st) { return stat(path, st); } #endif -/* libevent 1.3 does not have event_loopbreak() */ -#ifndef HAVE_EVENT_LOOPBREAK -static inline void event_loopbreak(void) { } -#endif - void change_user(const char *user); diff --git a/lib b/lib index b293971..968e99f 160000 --- a/lib +++ b/lib @@ -1 +1 @@ -Subproject commit b29397130cb26942c05308e8c27c5aa12727256d +Subproject commit 968e99f7539c841dd8fe8ff3420610ad1574b5e9