File: fix-build.patch

package info (click to toggle)
perdition 2.2-3.2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 3,616 kB
  • sloc: ansic: 14,571; sh: 5,274; makefile: 443
file content (23 lines) | stat: -rw-r--r-- 1,134 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Fix build because of missing stdint, leading to build error
 gcc -DHAVE_CONFIG_H -I. -I.. -DPERDITION_LIBDIR=\"/usr/lib\" -DPERDITION_SYSCONFDIR=\"/etc/perdition\" -DPERDITION_LOCALSTATEDIR=\"/var\" -I/usr/include   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fdebug-prefix-map=/build/perdition-2.2=. -fstack-protector-strong -Wformat -Werror=format-security -MT acap_token.o -MD -MP -MF .deps/acap_token.Tpo -c -o acap_token.o acap_token.c
 acap_token.c: In function 'acap_token_status':
 acap_token.c:186:12: error: 'SIZE_MAX' undeclared (first use in this function); did you mean 'SSIZE_MAX'?
  if (len > SIZE_MAX || len > ACAP_LITERAL_MAX)
            ^~~~~~~~
            SSIZE_MAX
 acap_token.c:186:12: note: each undeclared identifier is reported only once for each function it appears in

Author: Gianfranco Costamagna <locutusofborg@debian.org>

Last-Update: 2018-02-02

--- perdition-2.2.orig/perdition/acap_token.c
+++ perdition-2.2/perdition/acap_token.c
@@ -5,6 +5,7 @@
 #include <vanessa_adt.h>
 #include <ctype.h>
 #include <limits.h>
+#include <stdint.h>
 
 struct acap_token_status {
 	enum acap_type type;