freebsd-ports/devel/popt/files/patch-popt.c
Andrew Pantyukhin 2ec15bd3a7 - Remove qualifiers on some functions' return types
- This tweak pacifies gcc 4.x for ports depending
  on popt

Reported by:	pointyhat via kris
Discussed with:	rafan
2007-04-04 08:33:59 +00:00

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: