Open dreirund opened 2 weeks ago
A fix for the error is this patch. Note that it might be not a good fix. Also note that the many warnings also still need to be fixed.
diff -rU1 dhex.orig/input.c dhex/input.c
--- dhex.orig/input.c 2024-09-10 14:00:35.636713152 +0200
+++ dhex/input.c 2024-09-10 14:14:03.650062329 +0200
@@ -1 +1,6 @@
+// Work around "error: implicit declaration of function ‘usleep’; did you mean ‘sleep’?" error in GCC 14.x
+# if __GNUC__ >= 14
+ #define _DEFAULT_SOURCE
+#endif
+
#include <stdio.h>
A patch is given in this comment.
Ahoj,
with GCC 14.x, build fails for me with
error: implicit declaration of function ‘usleep’; did you mean ‘sleep’? [-Wimplicit-function-declaration]
:Full
make
output (with a lot of warnings):Regards!