File: gcc-14.patch

package info (click to toggle)
v-sim 3.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,188 kB
  • sloc: ansic: 115,451; f90: 19,861; python: 2,120; makefile: 1,002; xml: 719; cpp: 688; sh: 23
file content (26 lines) | stat: -rw-r--r-- 653 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
Author: Andreas Tille <tille@debian.org>
Last-Update: 2025-02-26
Description: Drop strange redefinition of strdup() which is in string.h

--- a/src/coreTools/atoms_yaml.c
+++ b/src/coreTools/atoms_yaml.c
@@ -1270,19 +1270,7 @@ static int posinp_yaml_forces(yaml_parse
 
   return done;
 }
-#if SYSTEM_X11 == 1
-static char* strdup(const char *src)
-{
-  char *dest;
-  size_t ln;
 
-  ln = strlen(src);
-  dest = malloc(sizeof(char) * (ln + 1));
-  memcpy(dest, src, sizeof(char) * ln);
-  dest[ln] = '\0';
-  return dest;
-}
-#endif
 static int posinp_yaml_external_potential(const PosinpDict *dict, PosinpAtoms *atoms, char **message)
 {
   int done;