Browse Source

Fix build for ubuntu

master
Con Kolivas 11 years ago
parent
commit
94bff9c3ab
  1. 1
      configure.ac
  2. 4
      src/ckdb.c

1
configure.ac

@ -37,6 +37,7 @@ AC_CHECK_HEADERS(endian.h sys/endian.h arpa/inet.h sys/poll.h syslog.h)
AC_CHECK_HEADERS(alloca.h pthread.h stdio.h math.h signal.h sys/prctl.h)
AC_CHECK_HEADERS(sys/types.h sys/socket.h sys/stat.h linux/un.h netdb.h)
AC_CHECK_HEADERS(stdint.h netinet/in.h netinet/tcp.h sys/ioctl.h)
AC_CHECK_HEADERS(libpq-fe.h postgresql/libpq-fe.h)
PTHREAD_LIBS="-lpthread"
MATH_LIBS="-lm"

4
src/ckdb.c

@ -23,7 +23,11 @@
#include <string.h>
#include <unistd.h>
#include <regex.h>
#ifdef HAVE_LIBPQ_FE_H
#include <libpq-fe.h>
#elif defined (HAVE_POSTGRESQL_LIBPQ_FE_H)
#include <postgresql/libpq-fe.h>
#endif
#include "ckpool.h"
#include "libckpool.h"

Loading…
Cancel
Save