File: implicit_declaration_of_free.patch

package info (click to toggle)
libxml-bare-perl 0.53-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,380 kB
  • sloc: xml: 15,836; perl: 1,335; ansic: 1,025; cpp: 41; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: fix warning "incompatible implicit declaration of built-in function 'free'"
 by unconditionally including stdlib.h (required on Linux)
Author: Florian Schlichting <fsfs@debian.org>

--- a/parser.c
+++ b/parser.c
@@ -1,8 +1,6 @@
 #include "parser.h"
 #include<stdio.h>
-#ifdef DARWIN
-  #include "stdlib.h"
-#endif
+#include "stdlib.h"
 #ifdef NOSTRING
   void memset(char *s, int c, int n) {
     char *se = s + n;