summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/popt/popt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/lib/popt/popt.c b/source4/lib/popt/popt.c
index eb81c720f5..253fe9c424 100644
--- a/source4/lib/popt/popt.c
+++ b/source4/lib/popt/popt.c
@@ -10,10 +10,11 @@
#include "system.h"
-#if HAVE_FLOAT_H
+#if HAVE_MATH_H
+#include <math.h>
+#elif HAVE_FLOAT_H
#include <float.h>
#endif
-#include <math.h>
#include "findme.h"
#include "poptint.h"