Use NetBSD's getopt{,_long}.

This commit is contained in:
wiz 2000-11-01 14:34:14 +00:00
parent 8aed9a24ac
commit fd7b7ed13e
6 changed files with 9 additions and 9 deletions

View File

@ -23,7 +23,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#define GDIFF_MAIN
#include "diff.h"
#include <signal.h>
#include "getopt.h"
#include <getopt.h>
#include "fnmatch.h"
#ifndef DEFAULT_WIDTH

View File

@ -20,7 +20,7 @@
#include "system.h"
#include <stdio.h>
#include <signal.h>
#include "getopt.h"
#include <getopt.h>
extern char const version_string[];

View File

@ -22,7 +22,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "system.h"
#include <stdio.h>
#include <signal.h>
#include "getopt.h"
#include <getopt.h>
/* Size of chunks read from files which must be parsed into lines. */
#define SDIFF_BUFSIZE ((size_t) 65536)

View File

@ -1,8 +1,8 @@
# $NetBSD: Makefile,v 1.13 1999/07/30 04:07:24 mycroft Exp $
# $NetBSD: Makefile,v 1.14 2000/11/01 14:34:14 wiz Exp $
PROG= diff
SRCS= diff.c analyze.c cmpbuf.c io.c context.c ed.c normal.c util.c \
dir.c regex.c side.c ifdef.c version.c getopt.c getopt1.c
dir.c regex.c side.c ifdef.c version.c
CPPFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR} -I${DIST}/diffutils \
-DPR_PROGRAM=\"/usr/bin/pr\"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.11 1999/07/30 04:07:24 mycroft Exp $
# $NetBSD: Makefile,v 1.12 2000/11/01 14:34:14 wiz Exp $
PROG= diff3
SRCS= diff3.c getopt.c getopt1.c version.c
SRCS= diff3.c version.c
CPPFLAGS+= -I${.CURDIR}/../diff -I${DIST}/diffutils \
-DHAVE_CONFIG_H -DDIFF_PROGRAM=\"/usr/bin/diff\"

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.10 1999/07/30 04:07:26 mycroft Exp $
# $NetBSD: Makefile,v 1.11 2000/11/01 14:34:15 wiz Exp $
PROG= sdiff
SRCS= sdiff.c getopt.c getopt1.c version.c
SRCS= sdiff.c version.c
CPPFLAGS+= -I${.CURDIR}/../diff -I${DIST}/diffutils \
-DHAVE_CONFIG_H -DDIFF_PROGRAM=\"/usr/bin/diff\"