aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-10-17 14:22:42 +0300
committerSergey Poznyakoff <gray@gnu.org>2020-10-17 14:59:33 +0300
commit6f999734206580ee2c693fe476cad2322a72fc0d (patch)
tree3a15cbb02c7abb80994ff9817ee248f96b2aaf48 /lib
parent5f2769a03542c039720b98525477495acaa51a06 (diff)
downloadpies-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.c1
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>

Return to:

Send suggestions and report system problems to the System administrator.