Skip to content

Commit 6c9c283

Browse files
committed
Install properly fe-auth-sasl.h
The internals of the frontend-side callbacks for SASL are visible in libpq-int.h, but the header was not getting installed. This would cause compilation failures for applications playing with the internals of libpq. Issue introduced in 9fd8557. Author: Mikhail Kulagin Reviewed-by: Jacob Champion Discussion: https://postgr.es/m/05ce01d777cb$40f31d60$c2d95820$@postgrespro.ru
1 parent 83f4fcc commit 6c9c283

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/interfaces/libpq/Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ install: all installdirs install-lib
131131
$(INSTALL_DATA) $(srcdir)/libpq-fe.h '$(DESTDIR)$(includedir)'
132132
$(INSTALL_DATA) $(srcdir)/libpq-events.h '$(DESTDIR)$(includedir)'
133133
$(INSTALL_DATA) $(srcdir)/libpq-int.h '$(DESTDIR)$(includedir_internal)'
134+
$(INSTALL_DATA) $(srcdir)/fe-auth-sasl.h '$(DESTDIR)$(includedir_internal)'
134135
$(INSTALL_DATA) $(srcdir)/pqexpbuffer.h '$(DESTDIR)$(includedir_internal)'
135136
$(INSTALL_DATA) $(srcdir)/pg_service.conf.sample '$(DESTDIR)$(datadir)/pg_service.conf.sample'
136137

@@ -144,6 +145,7 @@ uninstall: uninstall-lib
144145
rm -f '$(DESTDIR)$(includedir)/libpq-fe.h'
145146
rm -f '$(DESTDIR)$(includedir)/libpq-events.h'
146147
rm -f '$(DESTDIR)$(includedir_internal)/libpq-int.h'
148+
rm -f '$(DESTDIR)$(includedir_internal)/fe-auth-sasl.h'
147149
rm -f '$(DESTDIR)$(includedir_internal)/pqexpbuffer.h'
148150
rm -f '$(DESTDIR)$(datadir)/pg_service.conf.sample'
149151

src/tools/msvc/Install.pm

+2-1
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,8 @@ sub CopyIncludeFiles
633633
CopyFiles(
634634
'Libpq internal headers',
635635
$target . '/include/internal/',
636-
'src/interfaces/libpq/', 'libpq-int.h', 'pqexpbuffer.h');
636+
'src/interfaces/libpq/', 'libpq-int.h', 'fe-auth-sasl.h',
637+
'pqexpbuffer.h');
637638

638639
CopyFiles(
639640
'Internal headers',

0 commit comments

Comments
 (0)