File: texlive_svn_r74888.diff

package info (click to toggle)
texlive-bin 2025.20250727.75242%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 209,848 kB
  • sloc: ansic: 893,586; cpp: 156,185; perl: 101,166; sh: 37,697; python: 13,679; javascript: 9,754; makefile: 8,933; xml: 8,361; lex: 5,176; pascal: 3,814; java: 3,569; yacc: 2,935; tcl: 2,903; exp: 2,031; ruby: 712; lisp: 687; sed: 375; asm: 140; csh: 46; awk: 30
file content (27 lines) | stat: -rw-r--r-- 897 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
27
From: Karl Berry <karl@freefriends.org>
Subject: Remove (incompatible) declarations from c-memstr.h.

 * c-memstr.h (strtok, strstr): remove () fallback declarations,
   since C23 considers that the same as (void). Apparently
   HAVE_STRING_H was not defined, either.
   Report from Hilmar, 3 Apr 2025 23:54:54.

Origin: upstream, https://svn.tug.org:8369/texlive?revision=74888&view=revision
Bug-Debian: http://bugs.debian.org/1109256

Index: texk/kpathsea/c-memstr.h
===================================================================
--- texlive-bin.orig/texk/kpathsea/c-memstr.h	(revision 74887)
+++ texlive-bin/texk/kpathsea/c-memstr.h	(revision 74888)
@@ -53,11 +53,4 @@
 #define memcpy(to, from, len) bcopy ((from), (to), (len))
 #endif
 
-#if !defined(HAVE_STRING_H)
-extern char *strtok ();
-#ifndef strstr
-extern char *strstr ();
-#endif
-#endif
-
 #endif /* not KPATHSEA_C_MEMSTR_H */