mirror of
https://github.com/simh/simh.git
synced 2026-02-14 03:45:38 +00:00
Cleanup of readline and static libpcap support after multi-platform testing.
This commit is contained in:
6
makefile
6
makefile
@@ -121,7 +121,7 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
|
|||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
NETWORK_CCDEFS = -DUSE_SHARED
|
NETWORK_CCDEFS = -DUSE_SHARED
|
||||||
$(info using libpcap: $$(call find_include,pcap))
|
$(info using libpcap: $(call find_include,pcap))
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifneq (,$(call find_lib,vdeplug))
|
ifneq (,$(call find_lib,vdeplug))
|
||||||
@@ -149,14 +149,16 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin)
|
|||||||
# Look for package built from tcpdump.org sources with default install target
|
# Look for package built from tcpdump.org sources with default install target
|
||||||
LIBPATH += /usr/local/lib
|
LIBPATH += /usr/local/lib
|
||||||
INCPATH += /usr/local/include
|
INCPATH += /usr/local/include
|
||||||
|
LIBEXTSAVE = $(LIBEXT)
|
||||||
LIBEXT = a
|
LIBEXT = a
|
||||||
ifneq (,$(call find_lib,pcap))
|
ifneq (,$(call find_lib,pcap))
|
||||||
ifneq (,$(call find_include,pcap))
|
ifneq (,$(call find_include,pcap))
|
||||||
NETWORK_OPT = -DUSE_NETWORK -isystem /usr/local/include /usr/local/lib/libpcap.a
|
NETWORK_OPT := -DUSE_NETWORK -isystem $(dir $(call find_include,pcap)) $(call find_lib,pcap)
|
||||||
$(info using libpcap: $(call find_lib,pcap) $(call find_include,pcap))
|
$(info using libpcap: $(call find_lib,pcap) $(call find_include,pcap))
|
||||||
else
|
else
|
||||||
$(error using libpcap: $(call find_lib,pcap) missing pcap.h)
|
$(error using libpcap: $(call find_lib,pcap) missing pcap.h)
|
||||||
endif
|
endif
|
||||||
|
LIBEXT = $(LIBEXTSAVE)
|
||||||
else
|
else
|
||||||
$(error missing libpcap)
|
$(error missing libpcap)
|
||||||
endif
|
endif
|
||||||
|
|||||||
1
scp.c
1
scp.c
@@ -3852,6 +3852,7 @@ if (!initialized) {
|
|||||||
#define __STR_QUOTE(tok) #tok
|
#define __STR_QUOTE(tok) #tok
|
||||||
#define __STR(tok) __STR_QUOTE(tok)
|
#define __STR(tok) __STR_QUOTE(tok)
|
||||||
handle = dlopen("libncurses." __STR(HAVE_DLOPEN), RTLD_NOW|RTLD_GLOBAL);
|
handle = dlopen("libncurses." __STR(HAVE_DLOPEN), RTLD_NOW|RTLD_GLOBAL);
|
||||||
|
handle = dlopen("libcurses." __STR(HAVE_DLOPEN), RTLD_NOW|RTLD_GLOBAL);
|
||||||
handle = dlopen("libreadline." __STR(HAVE_DLOPEN), RTLD_NOW|RTLD_GLOBAL);
|
handle = dlopen("libreadline." __STR(HAVE_DLOPEN), RTLD_NOW|RTLD_GLOBAL);
|
||||||
if (handle) {
|
if (handle) {
|
||||||
p_readline = dlsym(handle, "readline");
|
p_readline = dlsym(handle, "readline");
|
||||||
|
|||||||
Reference in New Issue
Block a user