summaryrefslogtreecommitdiff
path: root/source4/include/system
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2006-01-31 01:51:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:38 -0500
commit4c54a04969d97570e2f423ca1935d995e353753b (patch)
treef6f59a1b584de406a5939041ee2efa18e37c67f2 /source4/include/system
parent7c7125be5dfdbacd702891e16529eb1412966f83 (diff)
downloadsamba-4c54a04969d97570e2f423ca1935d995e353753b.tar.gz
samba-4c54a04969d97570e2f423ca1935d995e353753b.tar.bz2
samba-4c54a04969d97570e2f423ca1935d995e353753b.zip
r13248: Revert revision 13071. It turns out that sys/param.h can be implicitly
included from other headers. In this case, undeffing MIN and MAX is a really bad idea because the subsequent include of sys/param.h will do nothing because of its include guards. (This used to be commit 8aa8be93b09cfbd176455738dfd305047030fd50)
Diffstat (limited to 'source4/include/system')
-rw-r--r--source4/include/system/filesys.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/source4/include/system/filesys.h b/source4/include/system/filesys.h
index b79ec33c1a..e81eec13e9 100644
--- a/source4/include/system/filesys.h
+++ b/source4/include/system/filesys.h
@@ -24,17 +24,6 @@
#include <sys/stat.h>
#ifdef HAVE_SYS_PARAM_H
-/* On (at least) IRIX and Linux, sys/param.h unconditionally defines the MAX
- * and MIN macros. Since smb_macros.h might have already defined this, we
- * choose to use the system versions if they are present. This avoids a MIPSPro
- * compiler warning whenever this file is included.
- */
-#if defined(HAVE_SYS_PARAM_H_MIN) && defined(MIN)
-#undef MIN
-#endif
-#if defined(HAVE_SYS_PARAM_H_MAX) && defined(MAX)
-#undef MAX
-#endif
#include <sys/param.h>
#endif