patchtherion - Patches: patch #7884, Compile on MacOS X.8

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #7884: Compile on MacOS X.8

Submitter:  None
Submitted:  Fri 09 Nov 2012 08:17:05 PM UTC
   
 
Status:  None Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open

Fri 09 Nov 2012 08:58:42 PM UTC, comment #1: 

Missed the second file to be patched:


index 61b952b..d14df5f 100644
--- a/loch/getline.h
+++ b/loch/getline.h
@@ -23,11 +23,13 @@ extern "C" {
 
 # include <stdio.h>
 
+#ifndef _APPLE_
 int
 getline (char **_lineptr, size_t *_n, FILE *_stream);
 
 int
 getdelim (char **_lineptr, size_t *_n, int _delimiter, FILE *_stream);
+#endif
 
 #ifdef __cplusplus
 }

Anonymous
Fri 09 Nov 2012 08:17:05 PM UTC, original submission:  

This minor change is needed to compile on Mac OS X:
https://github.com/mdornseif/therion/compare/newMac

diff --git a/extern/getline.c b/extern/getline.c
index 67257f3..1f14fb2 100644
--- a/extern/getline.c
+++ b/extern/getline.c
@@ -132,6 +132,7 @@ getstr (lineptr, n, stream, terminator, offset)
   return ret;
 }
 
+#ifndef _APPLE_
 int
 getline (lineptr, n, stream)
      char **lineptr;
@@ -151,3 +152,4 @@ getdelim (lineptr, n, delimiter, stream)
   return getstr (lineptr, n, stream, delimiter, 0);
 }
 #endif
+#endif

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #26903:  osx2.patch added by None (366B - application/octet-stream)
file #26902:  osx.patch added by None (422B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-11-09 None Attached File- Added osx2.patch, #26903
    2012-11-09 None Attached File- Added osx.patch, #26902

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code