diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/s6/compat.h | 20 | ||||
-rw-r--r-- | src/include/s6/s6.h | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/src/include/s6/compat.h b/src/include/s6/compat.h new file mode 100644 index 0000000..151db07 --- /dev/null +++ b/src/include/s6/compat.h @@ -0,0 +1,20 @@ +/* ISC license. */ + +#ifndef S6_COMPAT_H +#define S6_COMPAT_H + +#include <s6/config.h> + +#ifdef S6_USE_EXECLINE + +#include <execline/execline.h> +#define s6_el_semicolon(argv) el_semicolon(argv) + +#else + +extern int s6_compat_el_semicolon (char const **) ; +#define s6_el_semicolon(argv) s6_compat_el_semicolon(argv) + +#endif + +#endif diff --git a/src/include/s6/s6.h b/src/include/s6/s6.h index 98e23e1..aabcc13 100644 --- a/src/include/s6/s6.h +++ b/src/include/s6/s6.h @@ -3,6 +3,7 @@ #ifndef S6_H #define S6_H +#include <s6/compat.h> #include <s6/s6-supervise.h> #include <s6/ftrigr.h> #include <s6/ftrigw.h> |