r6643: fix some build issues on IRIX;l patch from james peach
authorGerald Carter <jerry@samba.org>
Sat, 7 May 2005 15:03:00 +0000 (15:03 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:49 +0000 (10:56 -0500)
source/lib/socket_wrapper.c
source/nsswitch/wb_common.c
source/nsswitch/winbind_nss_irix.c
source/nsswitch/winbindd_nss.h

index 2a26ba1534158ba282b03b71abca5e62588caa83..cb3911c3582db0b7bfcd1334eaff6ec6171349a7 100644 (file)
@@ -19,7 +19,7 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#ifdef _SAMBA_BUILD
+#ifdef _SAMBA_BUILD_
 #include "includes.h"
 #include "system/network.h"
 #else
index 6ba0cbbf4287cd1fc4d039a48c281621d117552d..40cf534c41d9d2eb7cc472c85ecadcfc0d893e6d 100644 (file)
@@ -26,9 +26,6 @@
 
 #include "winbind_client.h"
 
-#define CONST_DISCARD(type, ptr)      ((type) ((void *) (ptr)))
-#define CONST_ADD(type, ptr)          ((type) ((const void *) (ptr)))
-
 /* Global variables.  These are effectively the client state information */
 
 int winbindd_fd = -1;           /* fd for winbindd socket */
index 3a9d6c01ab5b4f73e7cbbac924bc1a0bde122e0e..26179773a99b15477fd223d16aa6337a3b1cd846 100644 (file)
@@ -122,7 +122,7 @@ winbind_startnext_timeout(nsd_file_t **rqp, nsd_times_t *to)
 }
 
 static void
-dequeue_request()
+dequeue_request(void)
 {
        nsd_file_t *rq;
        struct winbindd_request *request;
index 06ebd68f8f80ae0d8fd9f14bff43306fdeb2c21a..618ef79a0b4209f55fbddbb5469351371c92cfd5 100644 (file)
    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