diff options
author | Gerald Carter <jerry@samba.org> | 2005-05-07 15:03:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:56:49 -0500 |
commit | f1714eacf7365c731f6802972bff3fc62e72b8d0 (patch) | |
tree | 957e2927f874fc8600cf0b2f5a6335813e054419 /source3/nsswitch/winbindd_nss.h | |
parent | 03377b2a21af510da78a964b125ebceba13f2bb1 (diff) | |
download | samba-f1714eacf7365c731f6802972bff3fc62e72b8d0.tar.gz samba-f1714eacf7365c731f6802972bff3fc62e72b8d0.tar.bz2 samba-f1714eacf7365c731f6802972bff3fc62e72b8d0.zip |
r6643: fix some build issues on IRIX;l patch from james peach
(This used to be commit 8f78ee6abab9c1dd3e8b15ea3d1d96a651ee0426)
Diffstat (limited to 'source3/nsswitch/winbindd_nss.h')
-rw-r--r-- | source3/nsswitch/winbindd_nss.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_nss.h b/source3/nsswitch/winbindd_nss.h index 06ebd68f8f..618ef79a0b 100644 --- a/source3/nsswitch/winbindd_nss.h +++ b/source3/nsswitch/winbindd_nss.h @@ -10,6 +10,15 @@ products. You do not need to give any attribution. */ + +#ifndef CONST_DISCARD +#define CONST_DISCARD(type, ptr) ((type) ((void *) (ptr))) +#endif + +#ifndef CONST_ADD +#define CONST_ADD(type, ptr) ((type) ((const void *) (ptr))) +#endif + #ifndef SAFE_FREE #define SAFE_FREE(x) do { if(x) {free(CONST_DISCARD(void *, (x))); x=NULL;} } while(0) #endif |