Skip to content

Missing modern #includes [PATCH] #2

Description

@g4jc

I tried to compile this on GNU/Linux with 4.9 kernel and found it to be missing a bunch of includes. However, after adding them it does compile and seems to work fine.

Unsure the license of this project, but feel free to use the patch under any license you want.
If able to get a hold of original author, you might consider using a free license.


Subject: [PATCH 1/1] Fix missing includes

---
 extract-adf.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/extract-adf.c b/extract-adf.c
index 23ff5e7..696efa3 100644
--- a/extract-adf.c
+++ b/extract-adf.c
@@ -12,8 +12,13 @@
 // Comment out if zlib support is not available (support for adz will not work)
 #define	_HAVE_ZLIB
 
-#include <libc.h>
-#include <sys/_endian.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <string.h>
+#include <pthread.h>
+#include <endian.h>
 #include <sys/stat.h>
 #include <errno.h>
 #include <unistd.h>
-- 
2.11.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions