1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r4900: build fix for IRIX 6.5

This commit is contained in:
Andrew Tridgell 2005-01-21 13:29:24 +00:00 committed by Gerald (Jerry) Carter
parent 852f1e73b4
commit f6ff9e6f39
2 changed files with 5 additions and 5 deletions

View File

@ -321,10 +321,14 @@ int asprintf(char **,const char *, ...) PRINTF_ATTRIBUTE(2,3);
#endif #endif
#define discard_const_p(type, ptr) ((type *)discard_const(ptr)) #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() type safe varient of smb_xmalloc()
*/ */
#define smb_xmalloc_p(type) (type *)smb_xmalloc(sizeof(type)) #define smb_xmalloc_p(type) (type *)smb_xmalloc(sizeof(type))
#endif /* _INCLUDES_H */

View File

@ -175,10 +175,6 @@
int rename(const char *zfrom, const char *zto); int rename(const char *zfrom, const char *zto);
#endif #endif
#ifndef UINT16_MAX
#define UINT16_MAX 65535
#endif
#ifndef HAVE_FTRUNCATE #ifndef HAVE_FTRUNCATE
int ftruncate(int f,long l); int ftruncate(int f,long l);
#endif #endif