File: include_unistd_header.patch

package info (click to toggle)
libxmltok 1.2-4.2
  • links: PTS
  • area: main
  • in suites: sid, trixie
  • size: 660 kB
  • sloc: ansic: 10,540; makefile: 134
file content (17 lines) | stat: -rw-r--r-- 486 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: includes <unistd.h> in xmlwf/unixfilemap.c
 This patch adds `include <unistd.h>` to xmlwf/unixfilemap.c
 to address an -Wimplicit-function-declaration warning causing
 a build failure starting with 24.10.

---

--- libxmltok-1.2.orig/xmlwf/unixfilemap.c
+++ libxmltok-1.2/xmlwf/unixfilemap.c
@@ -10,6 +10,7 @@ See the file copying.txt for copying per
 #include <errno.h>
 #include <string.h>
 #include <stdio.h>
+#include <unistd.h>
 
 #ifndef MAP_FILE
 #define MAP_FILE 0