From 513568b7e2da1fe3ba26fb02228d616b453112ea Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 11 Sep 2006 21:25:06 +0000 Subject: r18400: move MAP_FAILED define to lib/replace/system/shmem.h (This used to be commit 025b142ff268498cfb36fc0e7e9e25a2c5963d38) --- source4/lib/replace/system/shmem.h | 4 ++++ source4/lib/tdb/common/tdb_private.h | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source4/lib/replace/system/shmem.h b/source4/lib/replace/system/shmem.h index 9c0458363a..26fa7c8d43 100644 --- a/source4/lib/replace/system/shmem.h +++ b/source4/lib/replace/system/shmem.h @@ -48,4 +48,8 @@ #define MAP_FILE 0 #endif +#ifndef MAP_FAILED +#define MAP_FAILED ((void *)-1) +#endif + #endif diff --git a/source4/lib/tdb/common/tdb_private.h b/source4/lib/tdb/common/tdb_private.h index cef2ae8a91..71bb53adbe 100644 --- a/source4/lib/tdb/common/tdb_private.h +++ b/source4/lib/tdb/common/tdb_private.h @@ -78,10 +78,6 @@ typedef u32 tdb_off_t; #define ACTIVE_LOCK 4 #define TRANSACTION_LOCK 8 -#ifndef MAP_FAILED -#define MAP_FAILED ((void *)-1) -#endif - /* free memory if the pointer is valid and zero the pointer */ #ifndef SAFE_FREE #define SAFE_FREE(x) do { if ((x) != NULL) {free(x); (x)=NULL;} } while(0) -- cgit