]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Vincent Régnard + Peter Pramberger + Amos Jeffries
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 30 Jun 2009 00:35:28 +0000 (12:35 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 30 Jun 2009 00:35:28 +0000 (12:35 +1200)
Bug 2699: Build failure NTLM smb_lm helper

Multiple definition of uint16 in included headers.
Make the typedef in .c and as portable as possible.

helpers/ntlm_auth/smb_lm/smbval/rfcnb-priv.h
helpers/ntlm_auth/smb_lm/smbval/rfcnb-util.c

index f7587e7f7e4c6ee2c98b7c6b80fc7036ea77fa87..fdd7dbfaabc05c04dc56e383214a6add0079ad39 100644 (file)
@@ -28,8 +28,6 @@
 
 /* Defines we need */
 
-typedef unsigned short uint16;
-
 #define GLOBAL extern
 
 #include "rfcnb-error.h"
index 7fcde49ae79b09869d0f3e9cc5dab53e05d7b6ff..03ebf74f66fab86b142d9b0094d335b98b6d0343 100644 (file)
 #include "rfcnb-io.h"
 #include <arpa/inet.h>
 
+#ifndef uint16
+#ifdef u_int16_t
+typedef u_int16_t uint16;
+#else
+typedef unsigned short uint16;
+#endif
+#endif
 
 extern void (*Prot_Print_Routine) ();  /* Pointer to protocol print routine */