1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 20:30:28 +02:00

Include <errno.h< so that SCM_SYSCALL is correctly

defined when HAVE_RESTARTABLE_SYSCALLS is not defined.
(HAVE_RESTARTABLE_SYSCALLS): Do not define when USE_COPT_THREADS
is defined.
This commit is contained in:
Marius Vollmer 2002-11-02 01:01:00 +00:00
parent 246c563ba9
commit cfe062d097

View file

@ -3,7 +3,7 @@
#ifndef SCM__SCM_H #ifndef SCM__SCM_H
#define SCM__SCM_H #define SCM__SCM_H
/* Copyright (C) 1995,1996,2000,2001 Free Software Foundation, Inc. /* Copyright (C) 1995,1996,2000,2001, 2002 Free Software Foundation, Inc.
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -46,6 +46,8 @@
#include <errno.h>
#include "libguile/__scm.h" #include "libguile/__scm.h"
/* "What's the difference between _scm.h and __scm.h?" /* "What's the difference between _scm.h and __scm.h?"
@ -88,6 +90,11 @@
when installing signal handlers. when installing signal handlers.
*/ */
/* However, don't assume SA_RESTART works with pthreads... */
#ifdef USE_COPT_THREADS
#undef HAVE_RESTARTABLE_SYSCALLS
#endif
#ifdef HAVE_RESTARTABLE_SYSCALLS #ifdef HAVE_RESTARTABLE_SYSCALLS
#define SCM_SYSCALL(line) line #define SCM_SYSCALL(line) line
#endif #endif