ftp://ftp.uniovi.es/pub/X11R6/graphics/misc/lock/xscreensaver-1.22.tar.gz
[xscreensaver] / driver / subprocs.c
index d8cc3309e7e84ddd9c1dcffc9efadd9c2f85b53e..23eb0e44345bc4c979512285953fa33fbb49c61c 100644 (file)
@@ -80,12 +80,13 @@ extern int putenv (/* const char * */);     /* getenv() is in stdlib.h... */
 extern int kill (pid_t, int);          /* signal() is in sys/signal.h... */
 #endif
 
-# if defined(SVR4) || defined(SYSV)
-#  define random() rand()
-# else /* !totally-losing-SYSV */
-extern long random();                  /* rand() is in stdlib.h... */
-# endif /* !totally-losing-SYSV */
-
+# ifndef random
+#  if defined(SVR4) || defined(SYSV)
+#   define random() rand()
+#  else /* !totally-losing-SYSV */
+    extern long random();              /* rand() is in stdlib.h... */
+#  endif /* !totally-losing-SYSV */
+# endif /* random defined */
 
 #include "xscreensaver.h"