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
|
Description: Add missing stdlib.h header for sample test
Author: Jérémy Lal <kapouer@melix.org>
Bug-Debian: https://bugs.debian.org/1108827
Forwarded: https://github.com/lvc/abi-compliance-checker/pull/135
Last-Update: 2025-07-06
--- abi-compliance-checker-2.3.orig/modules/Internals/RegTests.pm
+++ abi-compliance-checker-2.3/modules/Internals/RegTests.pm
@@ -4842,7 +4842,7 @@ sub runTests($$$$$$$$)
mkpath($Path_v1);
mkpath($Path_v2);
writeFile("$Path_v1/$ObjName.h", $HEADER1."\n");
- writeFile("$Path_v1/$ObjName.$SrcE", "#include \"$ObjName.h\"\n".$SOURCE1."\n");
+ writeFile("$Path_v1/$ObjName.$SrcE", "#include <stdlib.h>\n#include \"$ObjName.h\"\n".$SOURCE1."\n");
writeFile("$LibName/v1.xml", "
<version>
@@ -4875,7 +4875,7 @@ sub runTests($$$$$$$$)
");
writeFile("$Path_v2/$ObjName.h", $HEADER2."\n");
- writeFile("$Path_v2/$ObjName.$SrcE", "#include \"$ObjName.h\"\n".$SOURCE2."\n");
+ writeFile("$Path_v2/$ObjName.$SrcE", "#include <stdlib.h>\n#include \"$ObjName.h\"\n".$SOURCE2."\n");
writeFile("$LibName/v2.xml", "
<version>
2.0
|