diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-10-17 14:22:42 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-10-17 14:59:33 +0300 |
commit | 6f999734206580ee2c693fe476cad2322a72fc0d (patch) | |
tree | 3a15cbb02c7abb80994ff9817ee248f96b2aaf48 /lib | |
parent | 5f2769a03542c039720b98525477495acaa51a06 (diff) | |
download | pies-6f999734206580ee2c693fe476cad2322a72fc0d.tar.gz pies-6f999734206580ee2c693fe476cad2322a72fc0d.tar.bz2 |
Automatically detect if pies is started from docker
* lib/envop.c: Include sys/types.h (for ssize_t).
* src/pies.c (is_docker,no_init_option,init_detect): New functions.
(main): Call init_detect.
* src/utmp.c: Additional cpp magic to determine WTMPX_FILE and UTMPX_FILE.
* NEWS: Document the changes.
* doc/pies.texi: Likewise. Also, fix improper node name (inetd.conf).
* configure.ac: Version 1.4.91
Diffstat (limited to 'lib')
-rw-r--r-- | lib/envop.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/envop.c b/lib/envop.c index 93bd425..14c3273 100644 --- a/lib/envop.c +++ b/lib/envop.c @@ -17,6 +17,7 @@ #ifdef HAVE_CONFIG_H # include <config.h> #endif +#include <sys/types.h> #include <stdlib.h> #include <string.h> #include <errno.h> |