]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Karl Benoit <karl.isatwork@gmail.com>
authorAmos Jeffries <amosjeffries@squid-cache.org>
Thu, 15 Jul 2010 00:47:20 +0000 (18:47 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Thu, 15 Jul 2010 00:47:20 +0000 (18:47 -0600)
Bug 2885: AIX support: uchar is already define (more)

configure.in
helpers/basic_auth/MSNT/smblib.c

index 35bf19fdf069624defc2a88943565164fc35ce99..e0ed682658e53abc3159add8a3e3db1852c44a60 100644 (file)
@@ -2503,6 +2503,9 @@ AC_CHECK_TYPE(off_t,[ AC_CHECK_SIZEOF(off_t,,SQUID_DEFAULT_SIZEOF_INCLUDES)
 AC_CHECK_TYPE(mode_t, AC_DEFINE(HAVE_MODE_T,1,[mode_t is defined by the system headers]),,SQUID_DEFAULT_INCLUDES)
 AC_CHECK_TYPE(fd_mask,  AC_DEFINE(HAVE_FD_MASK,1,[fd_mask is defined by the system headers]),,SQUID_DEFAULT_INCLUDES)
 
+dnl On AIX uchar is pre-defined by the headers
+AC_CHECK_TYPE(uchar,[AC_DEFINE([HAVE_UCHAR],[1],[uchar is defined in system headers])],,SQUID_DEFAULT_INCLUDES)
+
 dnl Check for special functions
 AC_FUNC_ALLOCA
 
index b59cc722c3e41354570ab247636ac19316a22714..92aa0a7d7e1ccdcf32ebd890d84237f541b49141 100644 (file)
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
+#include "config.h"
 
 int SMBlib_errno;
 int SMBlib_SMB_Error;
 #define SMBLIB_ERRNO
+#ifndef HAVE_UCHAR
 #define uchar unsigned char
+#endif
 #include "util.h"
 #include "smblib-priv.h"
 #include "smblib.h"