Bug#299676: cfengine2: [NEW PATCH] FTBFS (amd64/gcc-4.0): array type has incomplete element type

2005-03-24 Thread Andreas Jochens
The attached patch uses a different fix for the FTBFS problem with gcc-4.0.

The previous patch apparently caused buffer overflows.

Regards
Andreas Jochens

diff -urN ../tmp-orig/cfengine2-2.1.13/debian/patches/gcc4_fix 
./debian/patches/gcc4_fix
--- ../tmp-orig/cfengine2-2.1.13/debian/patches/gcc4_fix1970-01-01 
01:00:00.0 +0100
+++ ./debian/patches/gcc4_fix   2005-03-24 12:59:58.830365233 +0100
@@ -0,0 +1,12 @@
+diff -urN tmp/src/cf.extern.h cfengine-2.1.13/src/cf.extern.h
+--- tmp/src/cf.extern.h2005-01-06 14:29:51.0 +0100
 cfengine-2.1.13/src/cf.extern.h2005-03-24 12:59:53.676756819 +0100
+@@ -28,6 +28,8 @@
+ /* */
+ /***/
+ 
++#include getopt.h
++
+ #if defined HAVE_PTHREAD_H  (defined HAVE_LIBPTHREAD || defined 
BUILDTIN_GCC_THREAD)
+ extern pthread_mutex_t MUTEX_SYSCALL;
+ extern pthread_mutex_t MUTEX_LOCK;


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#299676: cfengine2: [NEW PATCH] FTBFS (amd64/gcc-4.0): array type has incomplete element type

2005-03-24 Thread Andreas Jochens
The attached patch uses a different fix for the FTBFS problem with gcc-4.0.

The previous patch apparently caused buffer overflows.

Regards
Andreas Jochens

diff -urN ../tmp-orig/cfengine2-2.1.13/debian/patches/gcc4_fix 
./debian/patches/gcc4_fix
--- ../tmp-orig/cfengine2-2.1.13/debian/patches/gcc4_fix1970-01-01 
01:00:00.0 +0100
+++ ./debian/patches/gcc4_fix   2005-03-24 12:59:58.830365233 +0100
@@ -0,0 +1,12 @@
+diff -urN tmp/src/cf.extern.h cfengine-2.1.13/src/cf.extern.h
+--- tmp/src/cf.extern.h2005-01-06 14:29:51.0 +0100
 cfengine-2.1.13/src/cf.extern.h2005-03-24 12:59:53.676756819 +0100
+@@ -28,6 +28,8 @@
+ /* */
+ /***/
+ 
++#include getopt.h
++
+ #if defined HAVE_PTHREAD_H  (defined HAVE_LIBPTHREAD || defined 
BUILDTIN_GCC_THREAD)
+ extern pthread_mutex_t MUTEX_SYSCALL;
+ extern pthread_mutex_t MUTEX_LOCK;


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]