Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jul 2005 10:21:33 +0200 (CEST)
From:      Sven Berkvens-Matthijsse <sven@ilse.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/83132: [PATCH] print/libpaper does not compile on FreeBSD 4.x
Message-ID:  <200507080821.j688LXZr086742@serv7.ilse.net>
Resent-Message-ID: <200507080830.j688UGEm053213@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507080821.j688LXZr086742>