summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-09-22 17:58:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:45 -0500
commit2da3d6d5aac46cdada7b770a96bd73ae78fc983a (patch)
tree80e9c6d6a36797d29d4ab3c1728ad4bab757f1d6
parent772c250250f567d9a2429bc619a211f74dee2ef4 (diff)
downloadsamba-2da3d6d5aac46cdada7b770a96bd73ae78fc983a.tar.gz
samba-2da3d6d5aac46cdada7b770a96bd73ae78fc983a.tar.bz2
samba-2da3d6d5aac46cdada7b770a96bd73ae78fc983a.zip
r2528: Ensure MIN is defined as a macro so it's not undefined in the .so.
Fix from Andreas <andreas@conectiva.com.br>. Jeremy. (This used to be commit b5edad8b6098abac9b197d70fe29fb514e625b34)
-rw-r--r--source3/nsswitch/winbind_nss_linux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/nsswitch/winbind_nss_linux.c b/source3/nsswitch/winbind_nss_linux.c
index a6d0bfe4e8..267631cf2c 100644
--- a/source3/nsswitch/winbind_nss_linux.c
+++ b/source3/nsswitch/winbind_nss_linux.c
@@ -23,6 +23,10 @@
#include "winbind_client.h"
+#ifndef MIN
+#define MIN(a,b) ((a)<(b)?(a):(b))
+#endif
+
/* Maximum number of users to pass back over the unix domain socket
per call. This is not a static limit on the total number of users
or groups returned in total. */