about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--analyzer/pamtilt.c2
-rw-r--r--converter/other/pgmtoppm.c1
-rw-r--r--converter/other/svgtopam.c1
-rw-r--r--doc/HISTORY2
-rw-r--r--editor/pnmmontage.c1
-rw-r--r--editor/ppmcolormask.c1
-rw-r--r--other/pamx/pamx.c1
7 files changed, 9 insertions, 0 deletions
diff --git a/analyzer/pamtilt.c b/analyzer/pamtilt.c
index 37b6c394..2aa65df8 100644
--- a/analyzer/pamtilt.c
+++ b/analyzer/pamtilt.c
@@ -10,6 +10,8 @@
   All work has been contributed to the public domain by its authors.
 =============================================================================*/
 
+#define _XOPEN_SOURCE   /* get M_PI in math.h */
+
 #include <assert.h>
 #include <math.h>
 
diff --git a/converter/other/pgmtoppm.c b/converter/other/pgmtoppm.c
index cface024..12bc7d25 100644
--- a/converter/other/pgmtoppm.c
+++ b/converter/other/pgmtoppm.c
@@ -10,6 +10,7 @@
 ** implied warranty.
 */
 
+#define _BSD_SOURCE  /* Make sure strdup() is in <string.h> */
 #include <string.h>
 
 #include "mallocvar.h"
diff --git a/converter/other/svgtopam.c b/converter/other/svgtopam.c
index 896c5f03..56825a4e 100644
--- a/converter/other/svgtopam.c
+++ b/converter/other/svgtopam.c
@@ -26,6 +26,7 @@
 
 ============================================================================*/
 
+#define _BSD_SOURCE  /* Make sure strdup() is in <string.h> */
 #include <assert.h>
 #include <string.h>
 #include <stdio.h>
diff --git a/doc/HISTORY b/doc/HISTORY
index e640555a..ea54643a 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -33,6 +33,8 @@ not yet  BJH  Release 10.45.00
               Build: Rename Makefile.common, Makefile.config, to common.mk,
               etc.
 
+              Build: Add source type declarations to make -ansi compile work.
+
 08.09.27 BJH  Release 10.44.00
 
               Add pngtopam as a replacement for pngtopnm.  Has ability
diff --git a/editor/pnmmontage.c b/editor/pnmmontage.c
index a7b74510..4ccff497 100644
--- a/editor/pnmmontage.c
+++ b/editor/pnmmontage.c
@@ -10,6 +10,7 @@
  * implied warranty.
  */
 
+#define _BSD_SOURCE  /* Make sure strdup() is in <string.h> */
 #include <assert.h>
 #include <limits.h>
 #include <string.h>
diff --git a/editor/ppmcolormask.c b/editor/ppmcolormask.c
index eed64c19..0d7a214c 100644
--- a/editor/ppmcolormask.c
+++ b/editor/ppmcolormask.c
@@ -9,6 +9,7 @@
   Contributed to the public domain by its author.
 =========================================================================*/
 
+#define _BSD_SOURCE  /* Make sure strdup() is in <string.h> */
 #include <assert.h>
 #include <string.h>
 
diff --git a/other/pamx/pamx.c b/other/pamx/pamx.c
index 49aa07c9..de390098 100644
--- a/other/pamx/pamx.c
+++ b/other/pamx/pamx.c
@@ -3,6 +3,7 @@
    Copyright information is in the file COPYRIGHT
 */
 
+#define _BSD_SOURCE  /* Make sure strdup() is in <string.h> */
 #include <signal.h>
 #include <unistd.h>
 #include <errno.h>