From 51f3a6a5e86ab648365a03d3188002ffc94afd41 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 21 Jan 2005 13:29:24 +0000 Subject: r4900: build fix for IRIX 6.5 (This used to be commit f6ff9e6f39efdb312384ebb651b8e0f01e9e8df1) --- source4/include/includes.h | 6 +++++- source4/include/system/filesys.h | 4 ---- 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 -- cgit