LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File cfengine-2.1.11-option-array.dif of Package cfengine (Project home:danci1973)

diff -Nur cfengine-2.1.10/src/cf.defs.h cfengine-2.1.10-new/src/cf.defs.h
--- cfengine-2.1.10/src/cf.defs.h	2004-08-03 12:09:57.000000000 +0200
+++ cfengine-2.1.10-new/src/cf.defs.h	2008-08-19 16:37:23.000000000 +0200
@@ -31,6 +31,9 @@
 #include "conf.h"
 #include <stdio.h>
 
+#ifndef _GETOPT_H
+#include "../pub/getopt.h"
+#endif
 
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
diff -Nur cfengine-2.1.10/src/cf.extern.h cfengine-2.1.10-new/src/cf.extern.h
--- cfengine-2.1.10/src/cf.extern.h	2004-08-02 14:14:04.000000000 +0200
+++ cfengine-2.1.10-new/src/cf.extern.h	2008-08-19 16:38:15.000000000 +0200
@@ -66,7 +66,7 @@
 extern char *tzname[2];
 extern char *optarg;
 extern int optind;
-extern struct option OPTIONS[];
+extern struct option OPTIONS[49];
 extern int CFSIGNATURE;
 extern char CFDES1[8];
 extern char CFDES2[8];