summaryrefslogtreecommitdiff
path: root/archivers/pax/files/getoldopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/pax/files/getoldopt.c')
-rw-r--r--archivers/pax/files/getoldopt.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/archivers/pax/files/getoldopt.c b/archivers/pax/files/getoldopt.c
index df1e7b97c87..0468ae919db 100644
--- a/archivers/pax/files/getoldopt.c
+++ b/archivers/pax/files/getoldopt.c
@@ -1,4 +1,4 @@
-/* $NetBSD: getoldopt.c,v 1.4 2003/09/05 18:40:52 jlam Exp $ */
+/* $NetBSD: getoldopt.c,v 1.5 2004/08/21 03:28:56 jlam Exp $ */
/*
* Plug-compatible replacement for getopt() for parsing tar-like
@@ -12,17 +12,25 @@
#if HAVE_CONFIG_H
#include "config.h"
#endif
+#if HAVE_NBTOOL_CONFIG_H
+#include "nbtool_config.h"
+#endif
+
#include <nbcompat.h>
#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
-#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: getoldopt.c,v 1.4 2003/09/05 18:40:52 jlam Exp $");
+#if !defined(lint)
+__RCSID("$NetBSD: getoldopt.c,v 1.5 2004/08/21 03:28:56 jlam Exp $");
#endif /* not lint */
+#if HAVE_NBTOOL_CONFIG_H
+#include "compat_getopt.h"
+#else
#if HAVE_GETOPT_H
#include <getopt.h>
#endif
+#endif
#if HAVE_STDIO_H
#include <stdio.h>
#endif