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
7f36a2a7
Commit
7f36a2a7
authored
Dec 10, 1996
by
Bryan Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug: libpq clients (which include libpq-fe.h) won't compile.
parent
2697c279
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
19 deletions
+16
-19
src/interfaces/libpq/Makefile
src/interfaces/libpq/Makefile
+12
-15
src/interfaces/libpq/libpq-fe.h
src/interfaces/libpq/libpq-fe.h
+4
-4
No files found.
src/interfaces/libpq/Makefile
View file @
7f36a2a7
...
...
@@ -7,7 +7,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.2
1 1996/11/26 07:38:46
bryanh Exp $
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.2
2 1996/12/10 07:05:09
bryanh Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -40,7 +40,7 @@ shlib := libpq.so.1
endif
endif
all
:
libpq.a $(shlib)
postgres.h
c.h
all
:
libpq.a $(shlib) c.h
libpq.a
:
$(OBJS)
ifdef
MK_NO_LORDER
...
...
@@ -64,16 +64,6 @@ fe-lobj.o: ../backend/fmgr.h
libpq.so.1
:
$(OBJS)
$(CC)
$(LDFLAGS)
-shared
$(OBJS)
-o
libpq.so.1
postgres.h
:
../include/postgres.h
# Note: ../backend/include/postgres.h needs to be named something different
# to avoid confusion with this thing we're building now.
#
# hardwire NAMEDATALEN and OIDNAMELEN into the postgres.h for this installation
rm
-f
postgres.h
echo
"#define NAMEDATALEN $(NAMEDATALEN)"
>>
postgres.h
echo
"#define OIDNAMELEN $(OIDNAMELEN)"
>>
postgres.h
cat
../include/postgres.h
>>
postgres.h
c.h
:
../include/c.h
rm
-f
c.h
echo
"#undef PORTNAME"
>
c.h
...
...
@@ -85,12 +75,20 @@ c.h: ../include/c.h
install
:
install-headers install-libpq $(install-shlib-dep)
install-headers
:
beforeinstall-headers postgres.h c.h
\
# Many of the headers we install below have nothing to do with libpq,
# so should be installed by someone else.
#
install-headers
:
beforeinstall-headers c.h
\
../include/postgres.h ../include/postgres_ext.h
\
../include/config.h ../include/libpq/pqcomm.h
\
../include/libpq/libpq-fs.h ../include/lib/dllist.h
\
../include/utils/geo-decls.h libpq-fe.h
$(INSTALL)
$(INSTLOPTS)
../include/config.h
\
$(HEADERDIR)
/config.h
$(INSTALL)
$(INSTLOPTS)
../include/postgres.h
\
$(HEADERDIR)
/postgres.h
$(INSTALL)
$(INSTLOPTS)
../include/postgres_ext.h
\
$(HEADERDIR)
/postgres_ext.h
$(INSTALL)
$(INSTLOPTS)
../include/libpq/pqcomm.h
\
$(HEADERDIR)
/libpq/pqcomm.h
$(INSTALL)
$(INSTLOPTS)
../include/libpq/libpq-fs.h
\
...
...
@@ -111,7 +109,6 @@ ifeq ($(PORTNAME), hpux)
$(HEADERDIR)
/port/hpux/fixade.h
endif
$(INSTALL)
$(INSTLOPTS)
c.h
$(HEADERDIR)
/c.h
$(INSTALL)
$(INSTLOPTS)
postgres.h
$(HEADERDIR)
/postgres.h
beforeinstall-headers
:
@
if
[
!
-d
$(HEADERDIR)
]
;
then
mkdir
$(HEADERDIR)
;
fi
...
...
@@ -146,7 +143,7 @@ depend dep:
.PHONY
:
clean
clean
:
rm
-f
libpq.a libpq.so.1
$(OBJS)
c.h
postgres.h
rm
-f
libpq.a libpq.so.1
$(OBJS)
c.h
ifeq
(depend,$(wildcard depend))
include
depend
...
...
src/interfaces/libpq/libpq-fe.h
View file @
7f36a2a7
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: libpq-fe.h,v 1.1
4 1996/12/04 03:06:33
bryanh Exp $
* $Id: libpq-fe.h,v 1.1
5 1996/12/10 07:05:12
bryanh Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -23,7 +23,7 @@ extern "C" {
* include stuff common to fe and be
* ----------------
*/
/* #include "libpq/libpq.h" */
#include "postgres_ext.h"
#include "libpq/pqcomm.h"
#include "lib/dllist.h"
...
...
@@ -76,7 +76,7 @@ typedef struct {
typedef
struct
pgresAttDesc
{
char
*
name
;
/* type name */
Oid
adtid
;
/* type id */
int2
adtsize
;
/* type size */
short
adtsize
;
/* type size */
}
PGresAttDesc
;
/* use char* for Attribute values,
...
...
@@ -214,7 +214,7 @@ extern int PQnfields(PGresult *res);
extern
char
*
PQfname
(
PGresult
*
res
,
int
field_num
);
extern
int
PQfnumber
(
PGresult
*
res
,
const
char
*
field_name
);
extern
Oid
PQftype
(
PGresult
*
res
,
int
field_num
);
extern
int2
PQfsize
(
PGresult
*
res
,
int
field_num
);
extern
short
PQfsize
(
PGresult
*
res
,
int
field_num
);
extern
char
*
PQcmdStatus
(
PGresult
*
res
);
extern
const
char
*
PQoidStatus
(
PGresult
*
res
);
extern
char
*
PQgetvalue
(
PGresult
*
res
,
int
tup_num
,
int
field_num
);
...
...
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