diff --git a/elinks-0.11.4-gcc43NI_MAXHOST.patch b/elinks-0.11.4-gcc43NI_MAXHOST.patch new file mode 100644 index 0000000..0dcd4b5 --- /dev/null +++ b/elinks-0.11.4-gcc43NI_MAXHOST.patch @@ -0,0 +1,15 @@ +diff -urp elinks-0.11.4rc0.orig/src/protocol/uri.h elinks-0.11.4rc0/src/protocol/uri.h +--- elinks-0.11.4rc0.orig/src/protocol/uri.h 2008-02-05 00:44:16.000000000 +0100 ++++ elinks-0.11.4rc0/src/protocol/uri.h 2008-02-06 16:27:14.000000000 +0100 +@@ -1,6 +1,11 @@ + #ifndef EL__PROTOCOL_URI_H + #define EL__PROTOCOL_URI_H + ++/* because of build error with gcc4.3 */ ++#ifndef NI_MAXHOST ++#define NI_MAXHOST 1025 ++#endif ++ + #include "main/object.h" + + struct string; diff --git a/elinks.spec b/elinks.spec index 2e17421..c0990a9 100644 --- a/elinks.spec +++ b/elinks.spec @@ -28,6 +28,7 @@ Patch5: elinks-0.10.1-xterm.patch Patch6: elinks-0.11.0-union.patch Patch7: elinks-0.11.1-negotiate.patch Patch8: elinks-0.11.3-macropen.patch +Patch9: elinks-0.11.4-gcc43NI_MAXHOST.patch %description Links is a text-based Web browser. Links does not display any images, @@ -55,6 +56,8 @@ quickly and swiftly displays Web pages. %patch7 -p1 # fix for open macro in new glibc %patch8 -p1 +# fix for gcc4.3 build +%patch9 -p1 %build ./autogen.sh