mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
missing: move definition of secure_getenv() to missing_stdlib.h
This commit is contained in:
13
src/basic/missing_stdlib.h
Normal file
13
src/basic/missing_stdlib.h
Normal file
@@ -0,0 +1,13 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1+ */
|
||||
#pragma once
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
/* stdlib.h */
|
||||
#if !HAVE_SECURE_GETENV
|
||||
# if HAVE___SECURE_GETENV
|
||||
# define secure_getenv __secure_getenv
|
||||
# else
|
||||
# error "neither secure_getenv nor __secure_getenv are available"
|
||||
# endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user