]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- ./configure now checks to ensure the intX_t and u_intX_t types are defined,
authorDavid Hankins <dhankins@isc.org>
Tue, 6 Oct 2009 23:06:00 +0000 (23:06 +0000)
committerDavid Hankins <dhankins@isc.org>
Tue, 6 Oct 2009 23:06:00 +0000 (23:06 +0000)
  correcting a compilation failure when using Sun's compiler. [ISC-Bugs #20370]

RELNOTES
configure.ac

index 8708c35fafabf1f404708e954cd18eabff719085..3fd283550b7fdce3a05e6fe8d78593ddc5486cfb 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -202,6 +202,9 @@ work on other platforms. Please report any problems and suggested fixes to
   over-riding vlaues were not present in a matching fixed-address6 host
   configuration.
 
+- ./configure now checks to ensure the intX_t and u_intX_t types are defined,
+  correcting a compilation failure when using Sun's compiler.
+
                        Changes since 4.1.0b1
 
 - A missing "else" in dhcrelay.c could have caused an interface not to
index e62c689bf9252068fb96699ed5f3d390436f72a4..1643f622deea1611ca48f4a85db2053eedf0b02d 100644 (file)
@@ -318,6 +318,28 @@ AC_ARG_WITH(relay-pid-file,
        AC_DEFINE_UNQUOTED([_PATH_DHCRELAY_PID], ["$withval"],
                           [File for dhcrelay process information.]))
 
+# Check basic types.
+AC_TYPE_INT8_T
+AC_TYPE_INT16_T
+AC_TYPE_INT32_T
+
+# Some systems need the u_intX_t types defined across.
+AC_CHECK_TYPE([u_int8_t], [], [
+  AC_TYPE_UINT8_T
+  AC_DEFINE(u_int8_t, [uint8_t], [Define a type for 8-bit unsigned
+                                 integers.])
+])
+AC_CHECK_TYPE([u_int16_t], [], [
+  AC_TYPE_UINT16_T
+  AC_DEFINE(u_int16_t, [uint16_t], [Define a type for 16-bit unsigned
+                                   integers.])
+])
+AC_CHECK_TYPE([u_int32_t], [], [
+  AC_TYPE_UINT32_T
+  AC_DEFINE(u_int32_t, [uint32_t], [Define a type for 32-bit unsigned
+                                   integers.])
+])
+
 # see if ifaddrs.h is available
 AC_CHECK_HEADERS(ifaddrs.h)