summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2014-04-27 23:35:01 (GMT)
committerJohn Denker <jsd@av8n.com>2014-04-27 23:59:31 (GMT)
commit74091a532dc0fec6a40724423359a0a9774793f5 (patch)
tree4ab1025f2b02509459c494e404449ecccfc84906
parente13129817877ff8a4689b151b09a85af8a5f6359 (diff)
fix some bit-rot (getpid)
-rw-r--r--tools/ltgrey.c3
-rw-r--r--tools/skrewt.c3
-rw-r--r--tools/ward.c3
3 files changed, 9 insertions, 0 deletions
diff --git a/tools/ltgrey.c b/tools/ltgrey.c
index dfbc0dc..be947fa 100644
--- a/tools/ltgrey.c
+++ b/tools/ltgrey.c
@@ -1,6 +1,9 @@
#include <iostream>
#include <stdlib.h> /* for exit(), atoi() */
+#include <sys/types.h> /* for getpid() */
+#include <unistd.h>
+
#include "libltgrey.h"
#include "qq_exit_codes.h"
#include "utils.h"
diff --git a/tools/skrewt.c b/tools/skrewt.c
index cd2144f..ae1eed6 100644
--- a/tools/skrewt.c
+++ b/tools/skrewt.c
@@ -14,6 +14,9 @@
#include <vector>
#include <list>
+#include <sys/types.h> /* getpid */
+#include <unistd.h> /* getpid */
+
using namespace std;
void usage(const int sts){
diff --git a/tools/ward.c b/tools/ward.c
index e5667a4..98b351f 100644
--- a/tools/ward.c
+++ b/tools/ward.c
@@ -4,6 +4,9 @@
// scrutinize email
//
+#include <sys/types.h> /* for getpid() */
+#include <unistd.h>
+
#include <iostream>
#include <stdlib.h> /* for exit() */
#include <string> /* for strcmp() */