mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-11-24 10:53:24 +08:00
Add a null implementation of pledge.
Fixes builds on almost everything.
This commit is contained in:
parent
b1d6b3971e
commit
3ddd15e1b6
@ -854,7 +854,6 @@ mips-sony-bsd|mips-sony-newsos4)
|
|||||||
AC_DEFINE([SYSLOG_R_SAFE_IN_SIGHAND], [1],
|
AC_DEFINE([SYSLOG_R_SAFE_IN_SIGHAND], [1],
|
||||||
[syslog_r function is safe to use in in a signal handler])
|
[syslog_r function is safe to use in in a signal handler])
|
||||||
TEST_MALLOC_OPTIONS="AFGJPRX"
|
TEST_MALLOC_OPTIONS="AFGJPRX"
|
||||||
AC_CHECK_FUNCS([pledge])
|
|
||||||
;;
|
;;
|
||||||
*-*-solaris*)
|
*-*-solaris*)
|
||||||
if test "x$withval" != "xno" ; then
|
if test "x$withval" != "xno" ; then
|
||||||
@ -1669,6 +1668,7 @@ AC_CHECK_FUNCS([ \
|
|||||||
nsleep \
|
nsleep \
|
||||||
ogetaddrinfo \
|
ogetaddrinfo \
|
||||||
openlog_r \
|
openlog_r \
|
||||||
|
pledge \
|
||||||
poll \
|
poll \
|
||||||
prctl \
|
prctl \
|
||||||
pstat \
|
pstat \
|
||||||
|
@ -276,3 +276,11 @@ getpgid(pid_t pid)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_PLEDGE
|
||||||
|
int
|
||||||
|
pledge(const char *promises, const char *paths[])
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
@ -122,4 +122,8 @@ pid_t getpgid(pid_t);
|
|||||||
# define krb5_free_error_message(a,b) do { } while(0)
|
# define krb5_free_error_message(a,b) do { } while(0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_PLEDGE
|
||||||
|
int pledge(const char *promises, const char *paths[]);
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _BSD_MISC_H */
|
#endif /* _BSD_MISC_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user