浏览代码

avoid prototype clashes

Michael van Elst 22 年之前
父节点
当前提交
64fcd64fc1
共有 2 个文件被更改,包括 10 次插入4 次删除
  1. 9 3
      mapson/mapson.patch
  2. 1 1
      mapson/mapson.spec

+ 9 - 3
mapson/mapson.patch

@@ -1,6 +1,6 @@
---- libgetopt/getopt.h.orig	Fri Feb  8 16:40:49 2002
-+++ libgetopt/getopt.h	Fri Feb  8 16:41:15 2002
-@@ -138,7 +138,7 @@
+--- libgetopt/getopt.h.dist	2003-08-18 09:53:19.000000000 +0200
++++ libgetopt/getopt.h	2003-08-18 09:53:46.000000000 +0200
+@@ -138,13 +138,11 @@
     `getopt'.  */
  
  #if (defined __STDC__ && __STDC__) || defined __cplusplus
@@ -9,3 +9,9 @@
  /* 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__ */
+-extern int getopt ();
+ # endif /* __GNU_LIBRARY__ */
+ 
+ # ifndef __need_getopt

+ 1 - 1
mapson/mapson.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
 Group:        Mail
 License:      GPL
 Version:      2.4
-Release:      20030628
+Release:      20030818
 
 #   list of sources
 Source0:      http://osdn.dl.sourceforge.net/sourceforge/mapson/mapson-%{version}.tar.gz