This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
FreeBSD port (49): alpha's <pal.h>
- From: Bruno Haible <bruno at clisp dot org>
- To: Roland McGrath <roland at frob dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Thu, 5 Sep 2002 14:19:07 +0200 (CEST)
- Subject: FreeBSD port (49): alpha's <pal.h>
Linux has the file "pal.h" under asm/, but other systems have it under
machine/. Here is a patch to make linuxthreads/sysdeps/alpha/pt-machine.h
work on all platforms, using the same #if technique as found in
sysdeps/alpha/divrem.h and sysdeps/alpha/div.S.
linuxthreads/ChangeLog:
2002-09-04 Bruno Haible <bruno@clisp.org>
* sysdeps/alpha/pt-machine.h: Choose different include file location
on non-Linux platforms.
diff -r -c3 glibc-20020828.bak/linuxthreads/sysdeps/alpha/pt-machine.h glibc-20020828/linuxthreads/sysdeps/alpha/pt-machine.h
*** glibc-20020828.bak/linuxthreads/sysdeps/alpha/pt-machine.h Tue Aug 27 13:38:43 2002
--- glibc-20020828/linuxthreads/sysdeps/alpha/pt-machine.h Fri Aug 30 11:04:30 2002
***************
*** 26,32 ****
# define PT_EI extern inline
#endif
! #include <asm/pal.h>
extern long int testandset (int *spinlock);
extern int __compare_and_swap (long int *p, long int oldval, long int newval);
--- 26,36 ----
# define PT_EI extern inline
#endif
! #ifdef __linux__
! # include <asm/pal.h>
! #else
! # include <machine/pal.h>
! #endif
extern long int testandset (int *spinlock);
extern int __compare_and_swap (long int *p, long int oldval, long int newval);