Skip to content
This repository
Newer
Older
100644 51 lines (38 sloc) 0.695 kb
e41e81e8 »
2010-10-16 More header file portability for Windows.
1 #include "config.h"
2
6e77e744 »
2010-09-28 Some OpenBSD fixes from Jeremy Evans.
3 #include <stdint.h>
f71b97b4 »
2008-09-12 converted everything to cpp files to fix -Wno-deprecated error on gcc…
4 #include <stdlib.h>
5 #include <sys/types.h>
e41e81e8 »
2010-10-16 More header file portability for Windows.
6 #ifdef RBX_WINDOWS
7 #include <winsock2.h>
8 #else
f71b97b4 »
2008-09-12 converted everything to cpp files to fix -Wno-deprecated error on gcc…
9 #include <sys/socket.h>
10 #include <sys/un.h>
11 #include <netinet/in.h>
12 #include <netdb.h>
e41e81e8 »
2010-10-16 More header file portability for Windows.
13 #endif
14 #include <sys/stat.h>
f71b97b4 »
2008-09-12 converted everything to cpp files to fix -Wno-deprecated error on gcc…
15 #include <errno.h>
16 #include <time.h>
0cec8468 »
2011-11-17 Attach signbit via FFI
17 #include <math.h>
f71b97b4 »
2008-09-12 converted everything to cpp files to fix -Wno-deprecated error on gcc…
18
fb9d9259 »
2011-01-17 Fixes to compile ffi_util.cpp.
19 #include "windows_compat.h"
f71b97b4 »
2008-09-12 converted everything to cpp files to fix -Wno-deprecated error on gcc…
20 #include "ffi_util.hpp"
21
a80299bd »
2008-09-13 Make ffi_util functions extern "C" to avoid dlsym name mangling problem.
22 extern "C" {
23
f71b97b4 »
2008-09-12 converted everything to cpp files to fix -Wno-deprecated error on gcc…
24 extern char** environ;
25
26 int ffi_errno() { return errno; }
27
28 char** ffi_environ() { return environ; }
29
30 void ffi_set_errno(int n) {
31 errno = n;
32 }
33
19ec01ce »
2011-01-10 Haiku specific fix: add major and minor defines if they aren't there.
34 #ifndef major
35 #define major(x) x
36 #endif
37
38 #ifndef minor
39 #define minor(x) 0
40 #endif
41
f71b97b4 »
2008-09-12 converted everything to cpp files to fix -Wno-deprecated error on gcc…
42 long ffi_major(dev_t n) {
43 return major(n);
44 }
45
46 long ffi_minor(dev_t n) {
47 return minor(n);
48 }
49
a80299bd »
2008-09-13 Make ffi_util functions extern "C" to avoid dlsym name mangling problem.
50 }
Something went wrong with that request. Please try again.