mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +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:
parent
d2b7148b6c
commit
5a86073bd0
2
MANIFEST
2
MANIFEST
@ -77,9 +77,9 @@ include/compat/glob.h
|
||||
include/compat/nss_dbdefs.h
|
||||
include/compat/sha2.h
|
||||
include/compat/stdbool.h
|
||||
include/hostcheck.h
|
||||
include/log_server.pb-c.h
|
||||
include/protobuf-c/protobuf-c.h
|
||||
lib/iolog/hostcheck.h
|
||||
include/sudo_compat.h
|
||||
include/sudo_conf.h
|
||||
include/sudo_debug.h
|
||||
|
@ -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 $@
|
||||
|
||||
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
|
||||
$(LIBTOOL) $(LTFLAGS) --mode=link $(CC) -o $@ $(CHECK_IOLOG_PATH_OBJS) libsudo_iolog.la $(ASAN_LDFLAGS) $(PIE_LDFLAGS) $(SSP_LDFLAGS) $(TEST_LDFLAGS) $(TEST_LIBS)
|
||||
|
@ -358,4 +358,4 @@ validate_hostname(const X509 *cert, const char *hostname, const char *ipaddr, in
|
||||
|
||||
return res;
|
||||
}
|
||||
#endif /* HAVE_OPENSSL */
|
||||
#endif /* HAVE_OPENSSL */
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include <config.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/stat.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user