pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/fastdep Add missing prototypes. Don't conflict w...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c5207613582a
branches:  trunk
changeset: 610196:c5207613582a
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Oct 20 22:08:32 2012 +0000

description:
Add missing prototypes. Don't conflict with unistd.h on getopt.

diffstat:

 devel/fastdep/distinfo                        |   4 +++-
 devel/fastdep/patches/patch-external_getopt.c |  17 +++++++++++++++++
 devel/fastdep/patches/patch-external_getopt.h |  26 ++++++++++++++++++++++++++
 3 files changed, 46 insertions(+), 1 deletions(-)

diffs (65 lines):

diff -r 8ad047785205 -r c5207613582a devel/fastdep/distinfo
--- a/devel/fastdep/distinfo    Sat Oct 20 22:07:40 2012 +0000
+++ b/devel/fastdep/distinfo    Sat Oct 20 22:08:32 2012 +0000
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.5 2005/12/20 11:05:54 joerg Exp $
+$NetBSD: distinfo,v 1.6 2012/10/20 22:08:32 joerg Exp $
 
 SHA1 (fastdep-0.16.tar.gz) = e249ac93129f81e0aff791a442ef2dfd05edad9f
 RMD160 (fastdep-0.16.tar.gz) = b805d3db264e46de9e68cbf3104c874d9fa73ddc
 Size (fastdep-0.16.tar.gz) = 70374 bytes
 SHA1 (patch-aa) = 6704d991487d570da3cf475d03f1620febabc3aa
 SHA1 (patch-ab) = 60a89863baaee60c25842dd17fb1ba5cbb15652e
+SHA1 (patch-external_getopt.c) = e9d006a7bbd8e8d426ab0570a2aebb129918fbc1
+SHA1 (patch-external_getopt.h) = c626d845c6684901bcc9db80ae7d72e3c38fc493
diff -r 8ad047785205 -r c5207613582a devel/fastdep/patches/patch-external_getopt.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/fastdep/patches/patch-external_getopt.c     Sat Oct 20 22:08:32 2012 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-external_getopt.c,v 1.1 2012/10/20 22:08:32 joerg Exp $
+
+--- external/getopt.c.orig     2003-01-21 21:19:37.000000000 +0000
++++ external/getopt.c
+@@ -72,11 +72,9 @@
+ # include <unistd.h>
+ #endif        /* GNU C library.  */
+ 
++#include <string.h>
+ #ifdef VMS
+ # include <unixlib.h>
+-# if HAVE_STRING_H - 0
+-#  include <string.h>
+-# endif
+ #endif
+ 
+ #ifndef _
diff -r 8ad047785205 -r c5207613582a devel/fastdep/patches/patch-external_getopt.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/fastdep/patches/patch-external_getopt.h     Sat Oct 20 22:08:32 2012 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-external_getopt.h,v 1.1 2012/10/20 22:08:32 joerg Exp $
+
+--- external/getopt.h.orig     2003-01-21 21:19:38.000000000 +0000
++++ external/getopt.h
+@@ -100,21 +100,6 @@ struct option
+ #define optional_argument     2
+ 
+ #if defined (__STDC__) && __STDC__
+-/* HAVE_DECL_* is a three-state macro: undefined, 0 or 1.  If it is
+-   undefined, we haven't run the autoconf check so provide the
+-   declaration without arguments.  If it is 0, we checked and failed
+-   to find the declaration so provide a fully prototyped one.  If it
+-   is 1, we found it so don't provide any declaration at all.  */
+-#if defined (__GNU_LIBRARY__) || (defined (HAVE_DECL_GETOPT) && !HAVE_DECL_GETOPT)
+-/* Many other libraries have conflicting prototypes for getopt, with
+-   differences in the consts, in stdlib.h.  To avoid compilation
+-   errors, only prototype getopt for the GNU C library.  */
+-extern int getopt (int argc, char *const *argv, const char *shortopts);
+-#else /* not __GNU_LIBRARY__ */
+-# if !defined (HAVE_DECL_GETOPT)
+-extern int getopt ();
+-# endif
+-#endif /* __GNU_LIBRARY__ */
+ extern int getopt_long (int argc, char *const *argv, const char *shortopts,
+                       const struct option *longopts, int *longind);
+ extern int getopt_long_only (int argc, char *const *argv,



Home | Main Index | Thread Index | Old Index