]> granicus.if.org Git - pgbouncer/commitdiff
Move some portability goo over to libusual.
authorMarko Kreen <markokr@gmail.com>
Wed, 16 Jun 2010 10:35:12 +0000 (13:35 +0300)
committerMarko Kreen <markokr@gmail.com>
Wed, 16 Jun 2010 10:35:12 +0000 (13:35 +0300)
include/system.h
lib

index cdb0bd9b58d32078cc560a10073ede0bb7f216de..de3702a883501390f9032600df4a8bdfc0a83a68 100644 (file)
 #include <sys/uio.h>
 #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
 #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 b29397130cb26942c05308e8c27c5aa12727256d..968e99f7539c841dd8fe8ff3420610ad1574b5e9 160000 (submodule)
--- a/lib
+++ b/lib
@@ -1 +1 @@
-Subproject commit b29397130cb26942c05308e8c27c5aa12727256d
+Subproject commit 968e99f7539c841dd8fe8ff3420610ad1574b5e9