changeset 1227:511017b74e8e

Fixed detection of socklen_t for dpid
author Jorge Arellano Cid <jcid@dillo.org>
date Wed, 15 Jul 2009 11:34:38 -0400
parents 75e95cb764e7
children bb220d0d545b
files configure.in dpid/dpi.h
diffstat 2 files changed, 5 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Tue Jul 14 21:57:03 2009 -0400
+++ b/configure.in	Wed Jul 15 11:34:38 2009 -0400
@@ -135,7 +135,7 @@
 )
 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 @@
 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 @@
 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 @@
 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 --------------------------------------------------------------
--- a/dpid/dpi.h	Tue Jul 14 21:57:03 2009 -0400
+++ b/dpid/dpi.h	Wed Jul 15 11:34:38 2009 -0400
@@ -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