ports/83132: [PATCH] print/libpaper does not compile on FreeBSD 4.x

Sven Berkvens-Matthijsse sven at ilse.net
Fri Jul 8 08:30:17 UTC 2005


>Number:         83132
>Category:       ports
>Synopsis:       [PATCH] print/libpaper does not compile on FreeBSD 4.x
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 08 08:30:15 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Sven Berkvens-Matthijsse
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
ilse media
>Environment:
System: FreeBSD serv7.ilse.net 4.10-STABLE FreeBSD 4.10-STABLE #23: Wed Aug 4 15:18:52 CEST 2004 root at tango.ilse.net:/usr/obj/usr/src/sys/BAROQUE i386
>Description:
	The print/libpaper ports does not compile on FreeBSD 4.x because
	FreeBSD 4.x does not have the system header <getopt.h>.
>How-To-Repeat:
	Try to install the print/libpaper port on FreeBSD 4.x.
>Fix:
	Installing the following file in /usr/ports/print/libpaper/files
	will fix the problem on FreeBSD 4.x and is compatible with
	FreeBSD 5.x as far as I know.

	File: /usr/ports/print/libpaper/files/patch-src::paperconf.c

--- src/paperconf.c.orig	Fri Jul  8 10:14:40 2005
+++ src/paperconf.c	Fri Jul  8 10:15:37 2005
@@ -6,13 +6,15 @@
 #include <sys/param.h>
 
 #include <ctype.h>
-#include <getopt.h>
+#include <unistd.h>
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
 
 #include <paper.h>
 
+extern int optind;
+extern char *optarg;
 
 /* needed for GNU/Hurd */
 #ifndef MAXPATHLEN
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list