HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #626

Ticket #626: swipl-6.0.2.patch

File swipl-6.0.2.patch, 2.0 KB (added by munchausen, 3 years ago)
  • src/configure.in

    diff -Naur pl-6.0.2/src/configure.in pl-6.0.2-haiku/src/configure.in
    old new  
    689689        AC_DEFINE(_THREAD_SAFE, 1, 
    690690                  [Required in FreeBSD for compiling thread-safe code]) 
    691691        ;; 
     692    *haiku*) 
     693        pthread_ok=true 
     694        CFLAGS="$CFLAGS -lroot" 
     695        ;; 
    692696    *-win32|*-win64) 
    693697        pthread_ok=true 
    694698        AC_CHECK_LIB(pthreadGC2, pthread_create) 
  • src/os/pl-files.c

    diff -Naur pl-6.0.2/src/os/pl-files.c pl-6.0.2-haiku/src/os/pl-files.c
    old new  
    239239      return TRUE; 
    240240  } 
    241241 
    242 #ifdef __unix__                         /* doesn't work on most not Unix's */ 
     242#if defined(__unix__) || defined(__HAIKU__) /* doesn't work on most not Unix's */ 
    243243  { statstruct buf1; 
    244244    statstruct buf2; 
    245245    char tmp[MAXPATHLEN]; 
  • src/os/pl-os.c

    diff -Naur pl-6.0.2/src/os/pl-os.c pl-6.0.2-haiku/src/os/pl-os.c
    old new  
    590590  } 
    591591 
    592592retry: 
    593 #ifdef __unix__ 
     593#if defined(__unix__) || defined(__HAIKU__) 
    594594{ static int MTOK_temp_counter = 0; 
    595595  const char *sep = id[0] ? "_" : ""; 
    596596 
    … …  
    732732} 
    733733#endif /* O_HPFS */ 
    734734 
    735 #ifdef __unix__ 
     735#if defined(__unix__) || defined(__HAIKU__) 
    736736char * 
    737737PrologPath(const char *p, char *buf, size_t len) 
    738738{ strncpy(buf, p, len); 
    … …  
    24362436  return strcpy(buffer, file ? file : buf); 
    24372437} 
    24382438 
    2439 #ifdef __unix__ 
     2439#if defined(__unix__) || defined(__HAIKU__) 
    24402440static char * 
    24412441okToExec(const char *s) 
    24422442{ statstruct stbuff; 
  • src/pl-term.c

    diff -Naur pl-6.0.2/src/pl-term.c pl-6.0.2-haiku/src/pl-term.c
    old new  
    296296  term_t r = A1; 
    297297  term_t c = A2; 
    298298 
    299 #ifdef __unix__ 
     299#if defined(__unix__) || defined(__HAIKU__) 
    300300  int iorval; 
    301301 
    302302#ifdef TIOCGSIZE 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/