forked from Lainports/freebsd-ports
- This tweak pacifies gcc 4.x for ports depending on popt Reported by: pointyhat via kris Discussed with: rafan
21 lines
444 B
C
21 lines
444 B
C
--- ./popt.c.orig Thu Aug 22 18:17:44 2002
|
|
+++ ./popt.c Wed Apr 4 12:25:14 2007
|
|
@@ -14,6 +14,9 @@
|
|
#include <float.h>
|
|
#endif
|
|
#include <math.h>
|
|
+#ifdef __FreeBSD__
|
|
+#include <machine/float.h>
|
|
+#endif
|
|
|
|
#include "findme.h"
|
|
#include "poptint.h"
|
|
@@ -1153,7 +1156,7 @@
|
|
/*@=nullderef@*/
|
|
}
|
|
|
|
-const char *const poptStrerror(const int error)
|
|
+const char * poptStrerror(const int error)
|
|
{
|
|
switch (error) {
|
|
case POPT_ERROR_NOARG:
|