Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit f90b0b3

Browse files
committed
libpq: Use macosx platform strlcpy() implementation
When compiling with libc++, it isn't necessary for libpq to provide its own implementation of `strlcpy()`. In fact, attempting to build `strlcpy.h` fails because libc++ defines `strlcpy` to be a macro.
1 parent a7a2f68 commit f90b0b3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

libpq/libpq.gyp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,15 @@
127127
},
128128
}
129129
],
130+
[
131+
'OS == "mac"',
132+
{
133+
'sources!':
134+
[
135+
'src/strlcpy.c',
136+
],
137+
},
138+
],
130139
],
131140
},
132141
{

0 commit comments

Comments
 (0)