aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-07-15 11:34:38 -0400
committerJorge Arellano Cid <jcid@dillo.org>2009-07-15 11:34:38 -0400
commitafc7ce41d46fa19e65c5b4cdc7603c1d9c0e49d9 (patch)
tree1f9b6df3aecd84824b48452b8968ebc9c9dd2715
parent99506d535279fd401d3af322a7951d7e6d59682b (diff)
Fixed detection of socklen_t for dpid
-rw-r--r--configure.in10
-rw-r--r--dpid/dpi.h5
2 files changed, 5 insertions, 10 deletions
diff --git a/configure.in b/configure.in
index 15e8fc06..3e956dc6 100644
--- a/configure.in
+++ b/configure.in
@@ -135,7 +135,7 @@ ac_cv_socklen_t="size_t"
)
AC_MSG_RESULT($ac_cv_socklen_t)
if test "$ac_cv_socklen_t" != "socklen_t"; then
- AC_DEFINE_UNQUOTED(socklen_t, $ac_cv_socklen_t,
+ AC_DEFINE_UNQUOTED([socklen_t], [$ac_cv_socklen_t],
[Define the real type of socklen_t])
fi
@@ -183,7 +183,7 @@ if test "x$enable_jpeg" = "xyes"; then
fi
if test "x$jpeg_ok" = "xyes"; then
- AC_DEFINE([ENABLE_JPEG], [], [Enable JPEG images])
+ AC_DEFINE([ENABLE_JPEG], [1], [Enable JPEG images])
fi
dnl -------------
@@ -268,12 +268,12 @@ dnl Try to find libpng even though libpng-config wasn't found
fi
if test "x$png_ok" = "xyes"; then
- AC_DEFINE([ENABLE_PNG], [], [Enable PNG images])
+ AC_DEFINE([ENABLE_PNG], [1], [Enable PNG images])
fi
dnl Check if support for GIF images should be compiled in
if test "x$enable_gif" = "xyes"; then
- AC_DEFINE([ENABLE_GIF], [], [Enable GIF images])
+ AC_DEFINE([ENABLE_GIF], [1], [Enable GIF images])
fi
dnl --------------------------
@@ -298,7 +298,7 @@ if test "x$enable_ssl" = "xyes"; then
fi
if test "x$ssl_ok" = "xyes"; then
- AC_DEFINE([ENABLE_SSL], [], [Enable SSL support])
+ AC_DEFINE([ENABLE_SSL], [1], [Enable SSL support])
fi
dnl --------------------------------------------------------------
diff --git a/dpid/dpi.h b/dpid/dpi.h
index 0605e5d3..9c5ea4a5 100644
--- a/dpid/dpi.h
+++ b/dpid/dpi.h
@@ -10,11 +10,6 @@
#include <unistd.h> /* for socklen_t */
#include <sys/socket.h> /* for socklen_t and AF_LOCAL */
-/* Check the Unix98 goodie */
-#ifndef socklen_t
- #define socklen_t uint32_t
-#endif
-
/* Some systems may not have this one... */
#ifndef AF_LOCAL
#define AF_LOCAL AF_UNIX