mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Some compile failure fixes from Keith Parks <emkxp01@mtcc.demon.co.uk>
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user