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

Context Navigation

  • Back to Ticket #626

Ticket #626: swipl-6.2.0.patch

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

    diff -Naur pl-6.2.0/src/configure.in pl-6.2.0-haiku/src/configure.in
    old new  
    728728        AC_DEFINE(_THREAD_SAFE, 1, 
    729729                  [Required in FreeBSD for compiling thread-safe code]) 
    730730        ;; 
     731    *-haiku*) 
     732        pthread_ok=true 
     733        ;; 
    731734    *-win32|*-win64) 
    732735        pthread_ok=true 
    733736        AC_CHECK_LIB(pthreadGC2, pthread_create) 
  • src/os/pl-files.c

    diff -Naur pl-6.2.0/src/os/pl-files.c pl-6.2.0-haiku/src/os/pl-files.c
    old new  
    302302      return TRUE; 
    303303  } 
    304304 
    305 #ifdef __unix__                         /* doesn't work on most not Unix's */ 
     305#if defined(__unix__) || defined(__HAIKU__) /* doesn't work on most not Unix's */ 
    306306  { statstruct buf1; 
    307307    statstruct buf2; 
    308308    char tmp[MAXPATHLEN]; 
  • src/os/pl-os.c

    diff -Naur pl-6.2.0/src/os/pl-os.c pl-6.2.0-haiku/src/os/pl-os.c
    old new  
    601601  } 
    602602 
    603603retry: 
    604 #ifdef __unix__ 
     604#if defined(__unix__) || defined(__HAIKU__) 
    605605{ static int MTOK_temp_counter = 0; 
    606606  const char *sep = id[0] ? "_" : ""; 
    607607 
    … …  
    743743} 
    744744#endif /* O_HPFS */ 
    745745 
    746 #ifdef __unix__ 
     746#if defined(__unix__) || defined(__HAIKU__) 
    747747char * 
    748748PrologPath(const char *p, char *buf, size_t len) 
    749749{ strncpy(buf, p, len); 
    … …  
    25072507  return strcpy(buffer, file ? file : buf); 
    25082508} 
    25092509 
    2510 #ifdef __unix__ 
     2510#if defined(__unix__) || defined(__HAIKU__) 
    25112511static char * 
    25122512okToExec(const char *s) 
    25132513{ statstruct stbuff; 
  • src/pl-term.c

    diff -Naur pl-6.2.0/src/pl-term.c pl-6.2.0-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/