Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 75bb1e6

Browse files
committed
Add code to check that md5.c files are in sync.
1 parent a83bd89 commit 75bb1e6

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/backend/libpq/Makefile

+7-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Makefile for libpq subsystem (backend half of libpq interface)
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/backend/libpq/Makefile,v 1.25 2001/08/15 18:42:14 momjian Exp $
7+
# $Header: /cvsroot/pgsql/src/backend/libpq/Makefile,v 1.26 2001/11/12 01:42:03 momjian Exp $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -19,7 +19,12 @@ OBJS = be-fsstubs.o \
1919
pqcomm.o pqformat.o pqpacket.o pqsignal.o util.o
2020

2121

22-
all: SUBSYS.o
22+
all: check_md5 SUBSYS.o
23+
24+
check_md5:
25+
@cmp -s md5.c ../../interfaces/odbc/md5.c || \
26+
(echo "src/interfaces/odbc/md5.c doesn't match src/backend/libpq/md5.c" && \
27+
exit 1)
2328

2429
SUBSYS.o: $(OBJS)
2530
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)

src/backend/libpq/md5.c

+6-2
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@
1010
*
1111
* Sverre H. Huseby <sverrehu@online.no>
1212
*
13-
* $Header: /cvsroot/pgsql/src/backend/libpq/md5.c,v 1.9 2001/10/25 05:49:30 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/libpq/md5.c,v 1.10 2001/11/12 01:42:03 momjian Exp $
1414
*/
1515

16-
#include "postgres.h"
1716

17+
#ifndef MD5_ODBC
18+
#include "postgres.h"
1819
#include "libpq/crypt.h"
20+
#else
21+
#include "md5.h"
22+
#endif
1923

2024
#ifdef FRONTEND
2125
#undef palloc

0 commit comments

Comments
 (0)