[PATCH] [FreeBSD 9] Add HAVE_ define for intptr_t

Timur I. Bakeyev timur at com.bat.ru
Sun Jun 7 12:45:47 GMT 2009


There are still(?) pieces in the code that use HAVE_INTPTR_T define, but
apparently, we never defined it.

So, here is the patch.

With regards,
Timur Bakeyev.
-------------- next part --------------
--- ./lib/replace/libreplace_cc.m4.orig	2009-04-30 07:53:01.000000000 +0000
+++ ./lib/replace/libreplace_cc.m4	2009-06-01 11:49:40.000000000 +0000
@@ -151,6 +151,9 @@
 if test $ac_cv_sizeof_long_long -lt 8;then
 	AC_MSG_ERROR([LIBREPLACE needs sizeof(long long) >= 8])
 fi
+if test x"$ac_cv_type_intptr_t" = x"yes"; then
+	AC_DEFINE(HAVE_INTPTR_T,1,[Whether the host has intptr_t])
+fi
 
 ############################################
 # check if the compiler can do immediate structures


More information about the samba-technical mailing list