X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fmissing.h;h=c5bb71a504c5a04962c39923c399d781a1085bad;hp=7fbb9259ebae8151746058c8444f88a66f32480c;hb=4db17f291c627c885de668200ff8cce2e57c933f;hpb=54693d9bfa855841e8097d7a6b8c8d7acc068004 diff --git a/src/shared/missing.h b/src/shared/missing.h index 7fbb9259e..c5bb71a50 100644 --- a/src/shared/missing.h +++ b/src/shared/missing.h @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -218,7 +219,6 @@ static inline pid_t gettid(void) { #endif #ifndef HAVE_NAME_TO_HANDLE_AT - struct file_handle { unsigned int handle_bytes; int handle_type; @@ -229,3 +229,11 @@ static inline int name_to_handle_at(int fd, const char *name, struct file_handle return syscall(__NR_name_to_handle_at, fd, name, handle, mnt_id, flags); } #endif + +#ifndef HAVE_SECURE_GETENV +# ifdef HAVE___SECURE_GETENV +# define secure_getenv __secure_getenv +# else +# error neither secure_getenv nor __secure_getenv are available +# endif +#endif