blob: a8629231b8f4ad9c120193eff9e9ba74aeb1ecd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$NetBSD: patch-ad,v 1.21 2014/07/17 15:52:26 ryoon Exp $
--- converter/ppm/ppmtompeg/parallel.c.orig 2006-08-19 03:12:28.000000000 +0000
+++ converter/ppm/ppmtompeg/parallel.c
@@ -12,7 +12,10 @@
* HEADER FILES *
*==============*/
+/* SCO OpenServer 5.0.7/3.2 does not typedef u_long, when _XOPEN_SOURCE is defined. */
+#if !defined(_SCO_DS)
#define _XOPEN_SOURCE 500 /* Make sure stdio.h contains pclose() */
+#endif
/* _ALL_SOURCE is needed on AIX to make the C library include the
socket services (e.g. define struct sockaddr)
@@ -27,6 +30,7 @@
*/
+#include <sys/types.h>
#include <stdarg.h>
#include <time.h>
#include <unistd.h>
@@ -36,7 +40,6 @@
#include <signal.h>
#include <netdb.h>
#include <assert.h>
-#include <sys/types.h>
#include <sys/times.h>
#include "mallocvar.h"
|