summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--misc-utils/rename.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc-utils/rename.c b/misc-utils/rename.c
index 0e3e1b9e1..1d9315793 100644
--- a/misc-utils/rename.c
+++ b/misc-utils/rename.c
@@ -17,9 +17,11 @@ for i in $@; do N=`echo "$i" | sed "s/$FROM/$TO/g"`; mv "$i" "$N"; done
#ifdef HAVE_STDIO_EXT_H
# include <stdio_ext.h>
#endif
-#ifdef HAVE_FPURGE
+#ifndef HAVE___FPURGE
+# ifdef HAVE_FPURGE
# define HAVE___FPURGE 1
# define __fpurge fpurge
+# endif
#endif
#include <string.h>
#include <stdlib.h>