Commit 75bb1e6f authored by Bruce Momjian's avatar Bruce Momjian

Add code to check that md5.c files are in sync.

parent a83bd89d
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Makefile for libpq subsystem (backend half of libpq interface) # Makefile for libpq subsystem (backend half of libpq interface)
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/libpq/Makefile,v 1.25 2001/08/15 18:42:14 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/libpq/Makefile,v 1.26 2001/11/12 01:42:03 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -19,7 +19,12 @@ OBJS = be-fsstubs.o \ ...@@ -19,7 +19,12 @@ OBJS = be-fsstubs.o \
pqcomm.o pqformat.o pqpacket.o pqsignal.o util.o pqcomm.o pqformat.o pqpacket.o pqsignal.o util.o
all: SUBSYS.o all: check_md5 SUBSYS.o
check_md5:
@cmp -s md5.c ../../interfaces/odbc/md5.c || \
(echo "src/interfaces/odbc/md5.c doesn't match src/backend/libpq/md5.c" && \
exit 1)
SUBSYS.o: $(OBJS) SUBSYS.o: $(OBJS)
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS) $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
......
...@@ -10,12 +10,16 @@ ...@@ -10,12 +10,16 @@
* *
* Sverre H. Huseby <sverrehu@online.no> * Sverre H. Huseby <sverrehu@online.no>
* *
* $Header: /cvsroot/pgsql/src/backend/libpq/md5.c,v 1.9 2001/10/25 05:49:30 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/libpq/md5.c,v 1.10 2001/11/12 01:42:03 momjian Exp $
*/ */
#include "postgres.h"
#ifndef MD5_ODBC
#include "postgres.h"
#include "libpq/crypt.h" #include "libpq/crypt.h"
#else
#include "md5.h"
#endif
#ifdef FRONTEND #ifdef FRONTEND
#undef palloc #undef palloc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment