1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-27 21:29:02 +00:00
freebsd-ports/graphics/netpbm/files/patch-aj
Michael Haro 5c16c7e505 update to 8.3
Due to the change of default prefix from X11BASE to LOCALBASE, some
other ports Makefile having dependancy to grapchics/netpbm may have to
modify *_DEPENDS line.  I'll update those ports in a minute.

PR:		17742
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
2000-04-01 23:57:38 +00:00

45 lines
1.1 KiB
Plaintext

--- pbmplus.h.orig Fri Mar 24 09:08:33 2000
+++ pbmplus.h Sat Apr 1 10:32:36 2000
@@ -24,6 +24,9 @@
#include <errno.h>
#endif
#endif
+#if (defined(__unix__) || defined(unix)) && !defined(USG)
+#include <sys/param.h>
+#endif
#if defined(USG) || defined(SVR4) || defined(VMS) || defined(__SVR4)
#define SYSV
@@ -34,7 +37,7 @@
** and if you run on an Amiga, set AMIGA. If your compiler is ANSI C, you're
** probably better off setting SYSV - all it affects is string handling.
*/
-#define BSD
+/* #define BSD */
/* #define SYSV */
/* #define MSDOS */
/* #define AMIGA */
@@ -46,7 +49,7 @@
** hex and decimal forms to specify colors (see ppm/pgmtoppm.1 for details).
*/
#ifndef RGB_DB
-#define RGB_DB "/usr/lib/X11/rgb"
+#define RGB_DB "%%X11BASE%%/lib/X11/rgb"
/*#define RGB_DB "/usr/openwin/lib/rgb.txt"*/
#ifdef VMS
#define RGB_DB "PBMplus_Dir:RGB.TXT"
@@ -117,11 +120,13 @@
#ifndef VMS
#include <unistd.h>
#endif
+#if !(defined(BSD) && (BSD >= 199306))
extern int atoi();
extern void exit();
#ifndef __osf__
extern long time();
extern int write();
+#endif
#endif
#endif