contrib/htmldoc/fix_random.diff
2014-10-24 12:29:16 +02:00

19 lines
371 B
Diff

diff -ru a/htmldoc/http.h b/htmldoc/http.h
--- a/htmldoc/http.h 2014-10-24 12:08:19.063189382 +0200
+++ b/htmldoc/http.h 2014-10-24 12:07:33.583189387 +0200
@@ -16,6 +16,14 @@
*/
#ifndef _CUPS_HTTP_H_
+
+#ifndef CUPS_RAND()
+ #define CUPS_RAND() random()
+#endif
+#ifndef CUPS_SRAND(v)
+ #define CUPS_SRAND(v) srandom(v)
+#endif
+
# define _CUPS_HTTP_H_
/*