We automatically enable _DEFAULT_SOURCE if _GNU_SOURCE is defined. Rather than having even more optional methods undefined unless _GNU_SOURCE manually is, just change all remaining guarts to use _DEFAULT_SOURCE instead. Fixes #19095. Change-Id: I5c7baf40b7fb37913e24279589fc1ae706448a45 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8330 Reviewed-by: Adrien Destugues <[email protected]> Reviewed-by: waddlesplash <[email protected]> Tested-by: Commit checker robot <[email protected]>
35 lines
553 B
C
35 lines
553 B
C
/*
|
|
* Copyright 2019 Haiku, Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _GNU_SPAWN_H_
|
|
#define _GNU_SPAWN_H_
|
|
|
|
|
|
#include_next <spawn.h>
|
|
#include <features.h>
|
|
|
|
|
|
#ifdef _DEFAULT_SOURCE
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern int posix_spawn_file_actions_addchdir_np(
|
|
posix_spawn_file_actions_t *file_actions, const char *path);
|
|
extern int posix_spawn_file_actions_addfchdir_np(
|
|
posix_spawn_file_actions_t *file_actions, int fildes);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#endif /* _GNU_SPAWN_H_ */
|
|
|