r8467: using both math.h and float.h breaks popt on freebsd 5.4
authorAndrew Tridgell <tridge@samba.org>
Thu, 14 Jul 2005 13:21:27 +0000 (13:21 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:23:06 +0000 (13:23 -0500)
(This used to be commit a1acb3300eec7717df24ecdf7205fb4e395d8c16)

source4/lib/popt/popt.c

index eb81c720f5a33b93de7bf612a5fadb46d4c19444..253fe9c424e7c0e4deed998d1afcf67ee9673997 100644 (file)
 
 #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"