chiark / gitweb /
add <math.h> and -lm (no functional change)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Mar 2014 22:17:37 +0000 (22:17 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Mar 2014 22:17:37 +0000 (22:17 +0000)
Makefile
main.c

index 2b3faff49fe803c4d8ef2ad08164b55822d2ac58..5443d23e6f53d34bdca5515d5fd12655f3bac2e2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS += -Wall -Wwrite-strings -Wstrict-prototypes -g -O2 -std=gnu99
+CFLAGS += -Wall -Wwrite-strings -Wstrict-prototypes -g -O2 -std=gnu99 -lm
 LC_CTYPE=C
 LDLIBS = -lpub -lglpk
 
diff --git a/main.c b/main.c
index 2fc3a51f86979e5468fb4237cdd4efb760e4d089..3e846280687190398546c5f0729f4a71d99b7bf7 100644 (file)
--- a/main.c
+++ b/main.c
@@ -34,6 +34,7 @@
 #include <unistd.h>
 #include <stdbool.h>
 #include <inttypes.h>
+#include <math.h>
 #include <sys/types.h>
 #include <sys/wait.h>
 #include <sys/uio.h>