Remove remaining mentions of UNSAFE_STAT_OK
authorPeter Eisentraut <[email protected]>
Sat, 20 Aug 2022 11:53:21 +0000 (13:53 +0200)
committerPeter Eisentraut <[email protected]>
Sat, 20 Aug 2022 11:53:21 +0000 (13:53 +0200)
The last use was removed by bed90759fcbcd72d4d06969eebab81e47326f9a2.

Discussion: https://www.postgresql.org/message-id/flat/01229f9a-b358-d71e-31ae-4c0855d73cbc%40enterprisedb.com

src/interfaces/libpq/Makefile
src/tools/msvc/Mkvcbuild.pm

index 8abdb092c202c7818f4f41fd23fc3fa9ef418cb2..79c574eeb8b42cc7cdfabe3889193641466ef886 100644 (file)
@@ -22,7 +22,7 @@ NAME= pq
 SO_MAJOR_VERSION= 5
 SO_MINOR_VERSION= $(MAJORVERSION)
 
-override CPPFLAGS :=  -DFRONTEND -DUNSAFE_STAT_OK -I$(srcdir) $(CPPFLAGS) -I$(top_builddir)/src/port -I$(top_srcdir)/src/port
+override CPPFLAGS :=  -DFRONTEND -I$(srcdir) $(CPPFLAGS) -I$(top_builddir)/src/port -I$(top_srcdir)/src/port
 ifneq ($(PORTNAME), win32)
 override CFLAGS += $(PTHREAD_CFLAGS)
 endif
index 85d03372a5d13dcbb68ee22a2f039f248e0ec8c8..ee963d85f30066cc1c11bc670dce88b12e95ed10 100644 (file)
@@ -266,7 +266,6 @@ sub mkvcbuild
        $libpq = $solution->AddProject('libpq', 'dll', 'interfaces',
                'src/interfaces/libpq');
        $libpq->AddDefine('FRONTEND');
-       $libpq->AddDefine('UNSAFE_STAT_OK');
        $libpq->AddIncludeDir('src/port');
        $libpq->AddLibrary('secur32.lib');
        $libpq->AddLibrary('ws2_32.lib');