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:
parent
246c563ba9
commit
cfe062d097
1 changed files with 8 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
#ifndef 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
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -46,6 +46,8 @@
|
|||
|
||||
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
||||
/* "What's the difference between _scm.h and __scm.h?"
|
||||
|
@ -88,6 +90,11 @@
|
|||
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
|
||||
#define SCM_SYSCALL(line) line
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue