summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/include/includes.h6
-rw-r--r--source4/include/system/filesys.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/source4/include/includes.h b/source4/include/includes.h
index a87161af80..8c2e96b62e 100644
--- a/source4/include/includes.h
+++ b/source4/include/includes.h
@@ -321,10 +321,14 @@ int asprintf(char **,const char *, ...) PRINTF_ATTRIBUTE(2,3);
#endif
#define discard_const_p(type, ptr) ((type *)discard_const(ptr))
-#endif /* _INCLUDES_H */
+#ifndef UINT16_MAX
+#define UINT16_MAX 65535
+#endif
/*
type safe varient of smb_xmalloc()
*/
#define smb_xmalloc_p(type) (type *)smb_xmalloc(sizeof(type))
+#endif /* _INCLUDES_H */
+
diff --git a/source4/include/system/filesys.h b/source4/include/system/filesys.h
index 619b97d9bc..589bf9b0d9 100644
--- a/source4/include/system/filesys.h
+++ b/source4/include/system/filesys.h
@@ -175,10 +175,6 @@
int rename(const char *zfrom, const char *zto);
#endif
-#ifndef UINT16_MAX
-#define UINT16_MAX 65535
-#endif
-
#ifndef HAVE_FTRUNCATE
int ftruncate(int f,long l);
#endif