lock tty ioctl to openbsd
This commit is contained in:
parent
4309fe26d9
commit
81a2ea4414
1 changed files with 1 additions and 5 deletions
|
@ -8,10 +8,6 @@
|
|||
#include <fcntl.h>
|
||||
#include <time.h>
|
||||
|
||||
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__BSD__) || defined(BSD)
|
||||
#define RDO_USE_IOCTL 1
|
||||
#endif
|
||||
|
||||
int getpstartts(int pid, unsigned long long* startts) {
|
||||
char path[255], fc[1024];
|
||||
char* ptr = fc;
|
||||
|
@ -82,7 +78,7 @@ int ensuredir() {
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef RDO_USE_IOCTL
|
||||
#ifdef __OpenBSD__
|
||||
|
||||
void setsession(int ts_ttl) {
|
||||
if (ts_ttl <= 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue