1 // SPDX-License-Identifier: LGPL-2.1
4 #ifndef HAVE_GET_CURRENT_DIR_NAME
5 #include "get_current_dir_name.h"
9 /* Android's 'bionic' library, for one, doesn't have this */
11 char *get_current_dir_name(void)
15 return getcwd(pwd, sizeof(pwd)) == NULL ? NULL : strdup(pwd);
17 #endif // HAVE_GET_CURRENT_DIR_NAME