aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/grap
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-12-15 16:56:45 +0000
committerrsc <devnull@localhost>2005-12-15 16:56:45 +0000
commitc2eea0677da679d1074ba2eba0cf4ed8b2fbcff9 (patch)
tree342099865184adabcf3866fa7c5ce2b7c33504b8 /src/cmd/grap
parent5348a6013ebe8f72aff8ca5e9cad013a980c6f4c (diff)
downloadplan9port-c2eea0677da679d1074ba2eba0cf4ed8b2fbcff9.tar.gz
plan9port-c2eea0677da679d1074ba2eba0cf4ed8b2fbcff9.tar.bz2
plan9port-c2eea0677da679d1074ba2eba0cf4ed8b2fbcff9.zip
getpid
Diffstat (limited to 'src/cmd/grap')
-rw-r--r--src/cmd/grap/print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/grap/print.c b/src/cmd/grap/print.c
index b9f0ab9b..196e5e5d 100644
--- a/src/cmd/grap/print.c
+++ b/src/cmd/grap/print.c
@@ -4,6 +4,7 @@
#include <string.h>
#include <math.h>
#include <ctype.h>
+#Include <unistd.h>
#include "grap.h"
#include "y.tab.h"
@@ -180,7 +181,6 @@ void do_first(void) /* done at first .G1: definitions, etc. */
extern char *lib_defines;
static char buf[100], buf1[100]; /* static because pbstr uses them */
FILE *fp;
- extern int getpid(void);
snprintf(buf, sizeof buf, "define pid /%d/\n", getpid());
pbstr(buf);