diff options
author | Jay Threeth | 2011-04-04 11:48:26 -0700 |
---|---|---|
committer | Jay Threeth | 2011-04-04 11:48:26 -0700 |
commit | 3c9cc506f741b980565ff5b3b001cd8b6ee36b12 (patch) | |
tree | cb862c57b3d5f74177cde3bd962a53fc377166f6 /linden/indra/gpg.vs/inc.vs/unistd.h | |
parent | build fixes, might build on linux now (diff) | |
download | meta-impy-3c9cc506f741b980565ff5b3b001cd8b6ee36b12.zip meta-impy-3c9cc506f741b980565ff5b3b001cd8b6ee36b12.tar.gz meta-impy-3c9cc506f741b980565ff5b3b001cd8b6ee36b12.tar.bz2 meta-impy-3c9cc506f741b980565ff5b3b001cd8b6ee36b12.tar.xz |
add source to libraries, and cruft for building under windows
Diffstat (limited to 'linden/indra/gpg.vs/inc.vs/unistd.h')
-rwxr-xr-x | linden/indra/gpg.vs/inc.vs/unistd.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/linden/indra/gpg.vs/inc.vs/unistd.h b/linden/indra/gpg.vs/inc.vs/unistd.h new file mode 100755 index 0000000..b88428c --- /dev/null +++ b/linden/indra/gpg.vs/inc.vs/unistd.h | |||
@@ -0,0 +1,59 @@ | |||
1 | |||
2 | #pragma once | ||
3 | |||
4 | #include <basetsd.h> | ||
5 | #include <stddef.h> | ||
6 | #include <errno.h> | ||
7 | |||
8 | #ifndef S_IWUSR | ||
9 | #define S_IWUSR _S_IWRITE | ||
10 | #endif | ||
11 | |||
12 | #ifndef S_IRUSR | ||
13 | #define S_IRUSR _S_IREAD | ||
14 | #endif | ||
15 | |||
16 | #ifndef S_ISREG | ||
17 | #define S_ISREG(A) (1) | ||
18 | #endif | ||
19 | |||
20 | #ifndef _SIZE_T_DEFINED | ||
21 | typedef unsigned int size_t; | ||
22 | #define _SIZE_T_DEFINED | ||
23 | #endif | ||
24 | |||
25 | #ifndef _SSIZE_T_DEFINED | ||
26 | typedef signed int ssize_t; | ||
27 | #define _SSIZE_T_DEFINED | ||
28 | #endif | ||
29 | |||
30 | #ifndef _PID_T_DEFINED | ||
31 | typedef int pid_t; | ||
32 | #define _PID_T_DEFINED | ||
33 | #endif | ||
34 | |||
35 | #ifndef offsetof | ||
36 | #define offsetof(type, member) ((size_t) &((type *)0)->member) | ||
37 | #endif | ||
38 | |||
39 | /* Define to `int' if unavailable. */ | ||
40 | #ifndef _SOCKLEN_T_DEFINED | ||
41 | #ifndef socklen_t | ||
42 | typedef int socklen_t; | ||
43 | #define _SOCKLEN_T_DEFINED 1 | ||
44 | #endif | ||
45 | #endif | ||
46 | |||
47 | // !s0rr0w! | ||
48 | #define SIZEOF_UINT64_T 8 | ||
49 | #define UINT64_C(C) (C) | ||
50 | typedef unsigned __int64 uint64_t; | ||
51 | |||
52 | #if WIN32 /* [$PLOTR$] */ | ||
53 | #ifndef snprintf | ||
54 | #define snprintf sprintf_s | ||
55 | #endif | ||
56 | #include <io.h> | ||
57 | #include <process.h> | ||
58 | #pragma warning(disable : 4996) | ||
59 | #endif /* WIN32 */ /* [/$PLOTR$] */ | ||