1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-21 05:21:08 +03:00

enable examples to compile on Windows. patch from Hiroshi Saito.

This commit is contained in:
Andrew Dunstan
2009-12-31 00:16:47 +00:00
parent 3c505ef577
commit 31cf893088
3 changed files with 17 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
* $PostgreSQL: pgsql/src/test/examples/testlibpq2.c,v 1.15 2009/06/11 14:49:15 momjian Exp $
* $PostgreSQL: pgsql/src/test/examples/testlibpq2.c,v 1.16 2009/12/31 00:16:47 adunstan Exp $
*
*
* testlibpq2.c
@@ -24,11 +24,16 @@
*
* INSERT INTO TBL1 VALUES (10);
*/
#ifdef WIN32
#include <windows.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/types.h>
#include "libpq-fe.h"
static void