Skip to content

Commit 0ef6cfd

Browse files
committed
Fix nodejs#3465 Add ./configure --no-ifaddrs flag
For Old Solaris.
1 parent d0111aa commit 0ef6cfd

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

configure

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ parser.add_option("--dest-cpu",
136136
dest="dest_cpu",
137137
help="CPU architecture to build for. Valid values are: arm, ia32, x64")
138138

139+
parser.add_option("--no-ifaddrs",
140+
action="store_true",
141+
dest="no_ifaddrs",
142+
help="Use on deprecated SunOS systems that do not support ifaddrs.h")
143+
139144
(options, args) = parser.parse_args()
140145

141146

@@ -328,6 +333,9 @@ def configure_openssl(o):
328333
if options.without_ssl:
329334
return
330335

336+
if options.no_ifaddrs:
337+
o['defines'] += ['SUNOS_NO_IFADDRS']
338+
331339
if options.no_ssl2:
332340
o['defines'] += ['OPENSSL_NO_SSL2=1']
333341

0 commit comments

Comments
 (0)