about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libelf/fix-configure-main.patch
blob: cc7e5f4c41d1146b475b5474292bb765614cd459 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ur a/configure.in b/configure.in
--- a/configure.in	2008-05-23 04:17:56.000000000 -0400
+++ b/configure.in	2023-06-01 19:16:04.801921924 -0400
@@ -282,7 +282,7 @@
 #define memmove(d,s,n) bcopy((s),(d),(n))
 #endif
 extern int strcmp();
-main() {
+int main() {
   char buf[] = "0123456789";
   memmove(buf + 1, buf, 9);
   if (strcmp(buf, "0012345678")) exit(1);