diff options
Diffstat (limited to 'dev-util/dissembler/files/dissembler-0.9-build.patch')
-rw-r--r-- | dev-util/dissembler/files/dissembler-0.9-build.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-util/dissembler/files/dissembler-0.9-build.patch b/dev-util/dissembler/files/dissembler-0.9-build.patch new file mode 100644 index 000000000000..019dfec20ad6 --- /dev/null +++ b/dev-util/dissembler/files/dissembler-0.9-build.patch @@ -0,0 +1,21 @@ +--- dissembler.c ++++ dissembler.c +@@ -16,6 +16,9 @@ + + /* FOR EDUCATIONAL PURPOSES ONLY */ + ++#define _GNU_SOURCE ++#include <string.h> ++#include <unistd.h> + #include <stdio.h> + #include <sys/stat.h> + #include <ctype.h> +@@ -217,7 +217,7 @@ freedom: + fprintf(fh, "P"); + } + fprintf(fh,"\n"); +- if(fh != stdout) close(fh); ++ if(fh != stdout) fclose(fh); + free(mem-21); + } + |