heimdal: unset SLIST_ENTRY only if we are with windows
authorMatthieu Patou <mat@matws.net>
Fri, 10 Dec 2010 22:39:34 +0000 (01:39 +0300)
committerMatthieu Patou <mat@samba.org>
Fri, 10 Dec 2010 23:34:51 +0000 (00:34 +0100)
This is needed because otherwise on some OS like netbsd,openbsd,MacOSX.

The preprossessing of ./heimdal/lib/gssapi/mech/cred.h on this plateform
is broken because mechqueue.h's definition won't be used as SLIST_HEAD
is already defined.
The definition occurs when net/if.h is included as it includes
sys/queue.h

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat Dec 11 00:34:51 CET 2010 on sn-devel-104

source4/heimdal/lib/roken/roken-common.h

index d9369a3e15761ce7b5a2e9aebebeb2cbff832720..6a09da40e45b4b66079d1a2144bbdd2b3e5e2f0f 100644 (file)
 #define MAXPATHLEN (1024+4)
 #endif
 
-#endif /* !_WIN32 */
+#else/* !_WIN32 */
 
 /* Minimize conflict with WinNT.h */
 #ifdef SLIST_ENTRY
 #undef SLIST_ENTRY
 #endif
 
+#endif /* _WIN32 */
+
 #ifndef PATH_MAX
 #define PATH_MAX MAX_PATH
 #endif