This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]