about summary refs log tree commit diff
path: root/editor/pampaintspill.c
diff options
context:
space:
mode:
Diffstat (limited to 'editor/pampaintspill.c')
-rw-r--r--editor/pampaintspill.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/pampaintspill.c b/editor/pampaintspill.c
index b5f991d4..b9b783ef 100644
--- a/editor/pampaintspill.c
+++ b/editor/pampaintspill.c
@@ -24,6 +24,8 @@
  * ----------------------------------------------------------------------
  */
 
+#define _XOPEN_SOURCE 600  /* Make sure random(), srandom() are in <stdlib.h>*/
+#include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 #include <math.h>