diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-10-25 21:01:10 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-10-25 21:01:10 +0000 |
commit | 338661d0c14d786d8bf7e143b384ea211144f31f (patch) | |
tree | c766d8cd502313ca532863ec229dcb7cc342df91 /dev-util/dissembler/files | |
parent | Keyworded ~ppc64. Closes bug #238010 (diff) | |
download | gentoo-2-338661d0c14d786d8bf7e143b384ea211144f31f.tar.gz gentoo-2-338661d0c14d786d8bf7e143b384ea211144f31f.tar.bz2 gentoo-2-338661d0c14d786d8bf7e143b384ea211144f31f.zip |
Cleanup source and respect user settings #243996.
(Portage version: 2.2_rc12/cvs/Linux 2.6.26.2 x86_64)
Diffstat (limited to 'dev-util/dissembler/files')
-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); + } + |