diff -Naur pl-6.2.0/src/configure.in pl-6.2.0-haiku/src/configure.in
|
old
|
new
|
|
| 728 | 728 | AC_DEFINE(_THREAD_SAFE, 1, |
| 729 | 729 | [Required in FreeBSD for compiling thread-safe code]) |
| 730 | 730 | ;; |
| | 731 | *-haiku*) |
| | 732 | pthread_ok=true |
| | 733 | ;; |
| 731 | 734 | *-win32|*-win64) |
| 732 | 735 | pthread_ok=true |
| 733 | 736 | AC_CHECK_LIB(pthreadGC2, pthread_create) |
diff -Naur pl-6.2.0/src/os/pl-files.c pl-6.2.0-haiku/src/os/pl-files.c
|
old
|
new
|
|
| 302 | 302 | return TRUE; |
| 303 | 303 | } |
| 304 | 304 | |
| 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 */ |
| 306 | 306 | { statstruct buf1; |
| 307 | 307 | statstruct buf2; |
| 308 | 308 | char tmp[MAXPATHLEN]; |
diff -Naur pl-6.2.0/src/os/pl-os.c pl-6.2.0-haiku/src/os/pl-os.c
|
old
|
new
|
|
| 601 | 601 | } |
| 602 | 602 | |
| 603 | 603 | retry: |
| 604 | | #ifdef __unix__ |
| | 604 | #if defined(__unix__) || defined(__HAIKU__) |
| 605 | 605 | { static int MTOK_temp_counter = 0; |
| 606 | 606 | const char *sep = id[0] ? "_" : ""; |
| 607 | 607 | |
| … |
… |
|
| 743 | 743 | } |
| 744 | 744 | #endif /* O_HPFS */ |
| 745 | 745 | |
| 746 | | #ifdef __unix__ |
| | 746 | #if defined(__unix__) || defined(__HAIKU__) |
| 747 | 747 | char * |
| 748 | 748 | PrologPath(const char *p, char *buf, size_t len) |
| 749 | 749 | { strncpy(buf, p, len); |
| … |
… |
|
| 2507 | 2507 | return strcpy(buffer, file ? file : buf); |
| 2508 | 2508 | } |
| 2509 | 2509 | |
| 2510 | | #ifdef __unix__ |
| | 2510 | #if defined(__unix__) || defined(__HAIKU__) |
| 2511 | 2511 | static char * |
| 2512 | 2512 | okToExec(const char *s) |
| 2513 | 2513 | { statstruct stbuff; |
diff -Naur pl-6.2.0/src/pl-term.c pl-6.2.0-haiku/src/pl-term.c
|
old
|
new
|
|
| 296 | 296 | term_t r = A1; |
| 297 | 297 | term_t c = A2; |
| 298 | 298 | |
| 299 | | #ifdef __unix__ |
| | 299 | #if defined(__unix__) || defined(__HAIKU__) |
| 300 | 300 | int iorval; |
| 301 | 301 | |
| 302 | 302 | #ifdef TIOCGSIZE |