Add no-op getsid implmentation.

This commit is contained in:
Darren Tucker 2018-02-25 13:25:15 +11:00
parent 11057564eb
commit b39593a6de
3 changed files with 15 additions and 0 deletions

View File

@ -1739,6 +1739,7 @@ AC_CHECK_FUNCS([ \
getpgrp \ getpgrp \
_getpty \ _getpty \
getrlimit \ getrlimit \
getsid \
getttyent \ getttyent \
glob \ glob \
group_from_gid \ group_from_gid \

View File

@ -298,3 +298,13 @@ raise(int sig)
kill(getpid(), sig); kill(getpid(), sig);
} }
#endif #endif
#ifndef HAVE_GETSID
pid_t
getsid(pid_t pid)
{
errno = ENOSYS;
return -1;
}
#endif

View File

@ -141,4 +141,8 @@ void bzero(void *, size_t);
int raise(int); int raise(int);
#endif #endif
#ifndef HAVE_GETSID
pid_t getsid(pid_t);
#endif
#endif /* _BSD_MISC_H */ #endif /* _BSD_MISC_H */