2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 09:57:41 +00:00

Portability fixes and correct path to hostcheck.h in MANIFEST.

Include sys/socket.h for getpeername().
Link with -lnsl on Solaris to get inet_pton().
This commit is contained in:
Todd C. Miller 2020-01-18 11:32:45 -07:00
parent d2b7148b6c
commit 5a86073bd0
4 changed files with 4 additions and 3 deletions

View File

@ -77,9 +77,9 @@ include/compat/glob.h
include/compat/nss_dbdefs.h include/compat/nss_dbdefs.h
include/compat/sha2.h include/compat/sha2.h
include/compat/stdbool.h include/compat/stdbool.h
include/hostcheck.h
include/log_server.pb-c.h include/log_server.pb-c.h
include/protobuf-c/protobuf-c.h include/protobuf-c/protobuf-c.h
lib/iolog/hostcheck.h
include/sudo_compat.h include/sudo_compat.h
include/sudo_conf.h include/sudo_conf.h
include/sudo_debug.h include/sudo_debug.h

View File

@ -119,7 +119,7 @@ Makefile: $(srcdir)/Makefile.in
ifile=$<; rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $${ifile%i}c --i-file $< --output-file $@ ifile=$<; rm -f $@; pvs-studio --cfg $(PVS_CFG) --sourcetree-root $(top_srcdir) --skip-cl-exe yes --source-file $${ifile%i}c --i-file $< --output-file $@
libsudo_iolog.la: $(LIBIOLOG_OBJS) libsudo_iolog.la: $(LIBIOLOG_OBJS)
$(LIBTOOL) $(LTFLAGS) --mode=link $(CC) -o $@ $(LIBIOLOG_OBJS) $(LT_LIBS) @ZLIB@ $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) -o $@ $(LIBIOLOG_OBJS) $(LT_LIBS) @ZLIB@ @NET_LIBS@
check_iolog_path: $(CHECK_IOLOG_PATH_OBJS) libsudo_iolog.la check_iolog_path: $(CHECK_IOLOG_PATH_OBJS) libsudo_iolog.la
$(LIBTOOL) $(LTFLAGS) --mode=link $(CC) -o $@ $(CHECK_IOLOG_PATH_OBJS) libsudo_iolog.la $(ASAN_LDFLAGS) $(PIE_LDFLAGS) $(SSP_LDFLAGS) $(TEST_LDFLAGS) $(TEST_LIBS) $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) -o $@ $(CHECK_IOLOG_PATH_OBJS) libsudo_iolog.la $(ASAN_LDFLAGS) $(PIE_LDFLAGS) $(SSP_LDFLAGS) $(TEST_LDFLAGS) $(TEST_LIBS)

View File

@ -24,6 +24,7 @@
#include <config.h> #include <config.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>