aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index a336a1e9058..c753f84831b 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -19,6 +19,14 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19 19
20#include <config.h> 20#include <config.h>
21 21
22/* If HYBRID_GET_CURRENT_DIR_NAME is defined in conf_post.h, then we
23 need the following before including unistd.h, in order to pick up
24 the right prototype for gget_current_dir_name. */
25#ifdef HYBRID_GET_CURRENT_DIR_NAME
26#undef get_current_dir_name
27#define get_current_dir_name gget_current_dir_name
28#endif
29
22#include <execinfo.h> 30#include <execinfo.h>
23#include "sysstdio.h" 31#include "sysstdio.h"
24#ifdef HAVE_PWD_H 32#ifdef HAVE_PWD_H
@@ -121,9 +129,8 @@ static const int baud_convert[] =
121 1800, 2400, 4800, 9600, 19200, 38400 129 1800, 2400, 4800, 9600, 19200, 38400
122 }; 130 };
123 131
124 132#if !defined HAVE_GET_CURRENT_DIR_NAME || defined BROKEN_GET_CURRENT_DIR_NAME \
125#if !defined (HAVE_GET_CURRENT_DIR_NAME) || defined (BROKEN_GET_CURRENT_DIR_NAME) 133 || (defined HYBRID_GET_CURRENT_DIR_NAME)
126
127/* Return the current working directory. Returns NULL on errors. 134/* Return the current working directory. Returns NULL on errors.
128 Any other returned value must be freed with free. This is used 135 Any other returned value must be freed with free. This is used
129 only when get_current_dir_name is not defined on the system. */ 136 only when get_current_dir_name is not defined on the system. */