瀏覽代碼

Add preliminary Mac OS X support

tags/1.2
TomBoehm 10 年之前
父節點
當前提交
5b08179493
共有 2 個檔案被更改,包括 9 行新增1 行删除
  1. 5
    1
      postsrsd.c
  2. 4
    0
      srs2.h

+ 5
- 1
postsrsd.c 查看文件

28
 #include <pwd.h>
28
 #include <pwd.h>
29
 #include <string.h>
29
 #include <string.h>
30
 #include <poll.h>
30
 #include <poll.h>
31
-#include <wait.h>
31
+#ifdef __APPLE__
32
+    #include <sys/wait.h>
33
+#else
34
+    #include <wait.h>
35
+#endif
32
 #include <syslog.h>
36
 #include <syslog.h>
33
 
37
 
34
 #ifndef VERSION
38
 #ifndef VERSION

+ 4
- 0
srs2.h 查看文件

20
 #include <stdio.h>
20
 #include <stdio.h>
21
 #include <stdlib.h>
21
 #include <stdlib.h>
22
 #include <ctype.h>
22
 #include <ctype.h>
23
+#ifdef __APPLE__
24
+    #include <sys/types.h>
25
+#endif
26
+
23
 
27
 
24
 #ifndef __BEGIN_DECLS
28
 #ifndef __BEGIN_DECLS
25
 #define __BEGIN_DECLS
29
 #define __BEGIN_DECLS

Loading…
取消
儲存