Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
31cf8930
Commit
31cf8930
authored
Dec 31, 2009
by
Andrew Dunstan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable examples to compile on Windows. patch from Hiroshi Saito.
parent
3c505ef5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
src/test/examples/Makefile
src/test/examples/Makefile
+4
-0
src/test/examples/testlibpq2.c
src/test/examples/testlibpq2.c
+6
-1
src/test/examples/testlibpq3.c
src/test/examples/testlibpq3.c
+7
-1
No files found.
src/test/examples/Makefile
View file @
31cf8930
...
...
@@ -6,6 +6,10 @@ subdir = src/test/examples
top_builddir
=
../../..
include
$(top_builddir)/src/Makefile.global
ifeq
($(PORTNAME), win32)
LDLIBS
+=
-lws2_32
endif
override CPPFLAGS
:
= -I$(libpq_srcdir) $(CPPFLAGS)
override LDLIBS
:
= $(libpq_pgport) $(LDLIBS)
...
...
src/test/examples/testlibpq2.c
View file @
31cf8930
/*
* $PostgreSQL: pgsql/src/test/examples/testlibpq2.c,v 1.1
5 2009/06/11 14:49:15 momji
an Exp $
* $PostgreSQL: pgsql/src/test/examples/testlibpq2.c,v 1.1
6 2009/12/31 00:16:47 adunst
an 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
...
...
src/test/examples/testlibpq3.c
View file @
31cf8930
/*
* $PostgreSQL: pgsql/src/test/examples/testlibpq3.c,v 1.1
6 2009/06/11 14:49:15 momji
an Exp $
* $PostgreSQL: pgsql/src/test/examples/testlibpq3.c,v 1.1
7 2009/12/31 00:16:47 adunst
an Exp $
*
*
* testlibpq3.c
...
...
@@ -25,8 +25,14 @@
* t = (8 bytes) 'ho there'
* b = (5 bytes) \004\003\002\001\000
*/
#ifdef WIN32
#include <windows.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <sys/types.h>
#include "libpq-fe.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment