File: dont-overwrite-prototypes.patch

package info (click to toggle)
dvi2dvi 2.0alpha-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 928 kB
  • sloc: ansic: 6,645; makefile: 97; sh: 8
file content (26 lines) | stat: -rw-r--r-- 483 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Subject: Don't override prototypes of libc functions
Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
Date: 2017-01-13

--- a/defs.h
+++ b/defs.h
@@ -42,6 +42,7 @@
 #include	<strings.h>
 #endif
 
+#if 0
 #ifndef POSIX
 char *malloc();
 char *realloc();
@@ -66,6 +67,11 @@
 char *mktemp();
 char *getenv();
 void exit();
+#else
+#include <malloc.h>
+#include <string.h>
+#endif
+
 
 #define DEBUG		/* for massive printing of input */
 			/* trace information; select by -d */