logo       
Google Custom Search
    AddThis Social Bookmark Button

missing define on certain platform: msg#00221

Subject: missing define on certain platform
Added to allow CVS to compile on certain older libc5 linux systems that do
not have MAP_FAILED defined.

Jeremy Brand

-----------
Index: ChangeLog
===================================================================
RCS file: /cvsroot/ccvs/ChangeLog,v
retrieving revision 1.648
diff -u -r1.648 ChangeLog
--- ChangeLog   22 May 2002 16:12:57 -0000      1.648
+++ ChangeLog   31 May 2002 17:42:03 -0000
@@ -1,3 +1,8 @@
+2002-05-31  Jeremy Brand  <jeremy@xxxxxxxxxxxxxxx>, <jeremy@xxxxxxxxxxx>
+
+        * Added to allow CVS to compile on certain older libc5 linux systems
+        that do not have MAP_FAILED defined.
+
 2002-05-22  Larry Jones  <lawrence.jones@xxxxxxx>

        * TODO (173, 202): Update to reflect current state of affairs.
Index: src/rcs.h
===================================================================
RCS file: /cvsroot/ccvs/src/rcs.h,v
retrieving revision 1.58
diff -u -r1.58 rcs.h
--- src/rcs.h   30 Mar 2001 22:10:36 -0000      1.58
+++ src/rcs.h   31 May 2002 17:42:03 -0000
@@ -13,6 +13,10 @@
 #define        RCS_MERGE_PAT_2 "=======\n"
 #define        RCS_MERGE_PAT_3 ">>>>>>> "

+#ifndef MAP_FAILED
+#define MAP_FAILED NULL
+#endif
+
 #define        RCSEXT          ",v"
 #define RCSPAT         "*,v"
 #define        RCSHEAD         "head"

Attachment: cvs.diff
Description: Text document


Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>