summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2015-11-24 18:46:50 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2015-11-24 18:48:07 +0000
commit7b085136a7291cbcdfcc53182fbd13aaca70306e (patch)
treed1163394ea472132c6cc541c4247d8925c71974a
parent3f47ff6ecd7c126474c77d03f7886b7ef232d468 (diff)
-sys/queue.h in proc.c, and nuke the unnecessary C++ header guards stuff and
sys/cdefs.h in vis.h (it causes problems on some platforms). Reported by someone on GitHub, issue 212.
-rw-r--r--compat/vis.h5
-rw-r--r--proc.c1
2 files changed, 0 insertions, 6 deletions
diff --git a/compat/vis.h b/compat/vis.h
index 6795139c..9f12d236 100644
--- a/compat/vis.h
+++ b/compat/vis.h
@@ -73,9 +73,6 @@
*/
#define UNVIS_END 1 /* no more characters */
-#include <sys/cdefs.h>
-
-__BEGIN_DECLS
char *vis(char *, int, int, int);
int strvis(char *, const char *, int);
int stravis(char **, const char *, int);
@@ -85,6 +82,4 @@ int strunvis(char *, const char *);
int unvis(char *, char, int *, int);
ssize_t strnunvis(char *, const char *, size_t);
-__END_DECLS
-
#endif /* !_VIS_H_ */
diff --git a/proc.c b/proc.c
index 7aa59cff..3e1e81dd 100644
--- a/proc.c
+++ b/proc.c
@@ -17,7 +17,6 @@
*/
#include <sys/types.h>
-#include <sys/queue.h>
#include <sys/uio.h>
#include <errno.h>