diff options
author | Marc G. Fournier <scrappy@hub.org> | 1996-11-06 06:52:23 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1996-11-06 06:52:23 +0000 |
commit | ce4c0ce1dec3f34dbbc812a49026f70003a63d18 (patch) | |
tree | a45e10088e6d6fa41c7050b0824675378dec7b0f /src/backend/executor/nodeHash.c | |
parent | e4725ee76a3fcdf40548c93badc4a8f679a953bb (diff) | |
download | postgresql-ce4c0ce1dec3f34dbbc812a49026f70003a63d18.tar.gz postgresql-ce4c0ce1dec3f34dbbc812a49026f70003a63d18.zip |
Some compile failure fixes from Keith Parks <emkxp01@mtcc.demon.co.uk>
Diffstat (limited to 'src/backend/executor/nodeHash.c')
-rw-r--r-- | src/backend/executor/nodeHash.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/backend/executor/nodeHash.c b/src/backend/executor/nodeHash.c index d6067713cfe..e3b004c0a29 100644 --- a/src/backend/executor/nodeHash.c +++ b/src/backend/executor/nodeHash.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/executor/nodeHash.c,v 1.6 1996/10/31 10:12:00 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/executor/nodeHash.c,v 1.7 1996/11/06 06:47:40 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -21,7 +21,14 @@ #include <stdio.h> /* for sprintf() */ #include <math.h> +#include <string.h> #include <sys/file.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> + +#include <unistd.h> + #include "postgres.h" @@ -31,6 +38,7 @@ #include "executor/executor.h" #include "executor/nodeHash.h" #include "executor/nodeHashjoin.h" +#include "executor/execdebug.h" #include "utils/palloc.h" #include "utils/hsearch.h" @@ -845,7 +853,7 @@ static int hjtmpcnt = 0; static void mk_hj_temp(char *tempname) { - sprintf(tempname, "HJ%d.%d", getpid(), hjtmpcnt); + sprintf(tempname, "HJ%d.%d", (int)getpid(), hjtmpcnt); hjtmpcnt = (hjtmpcnt + 1) % 1000; } |