build: Link against libsocket on QNX

QNX implements `res_query()` in libsocket, not libresolv or libbind.
This commit is contained in:
s1341 2015-03-25 18:35:44 +02:00 committed by Ole André Vadla Ravnås
parent 4e3b646b4f
commit 57768b4704

View File

@ -50,6 +50,9 @@ if host_system != 'windows'
elif cc.links(res_query_test, args : '-lbind', name : 'res_query() in -lbind')
network_libs += [ cc.find_library('bind') ]
network_args += [ '-lbind' ]
elif cc.links(res_query_test, args : '-lsocket', name : 'res_query() in -lsocket')
network_libs += [ cc.find_library('socket') ]
network_args += [ '-lsocket' ]
else
error('Could not find res_query()')
endif