powerpc64: maintain own linux/powerpc64 subdirectory

Most architectures supported by strace have their own subdirectory in
linux directory, but powerpc64 didn't, causing inconveniences.

* configure.ac (arch): Define to "powerpc64" on powerpc64.
* linux/powerpc/errnoent1.h: Move to linux/powerpc64/.
* linux/powerpc/ioctlent1.h: Likewise.
* linux/powerpc/signalent1.h: Likewise.
* linux/powerpc/syscallent1.h: Likewise.
* linux/powerpc64/ioctlent.h: New file.
* linux/powerpc64/syscallent.h: Likewise.
* linux/powerpc64/userent.h: Likewise.
* Makefile.am (EXTRA_DIST): Remove linux/powerpc/ioctlent1.h,
linux/powerpc/syscallent1.h, linux/powerpc/errnoent1.h, and
linux/powerpc/signalent1.h; added linux/powerpc64/errnoent1.h,
linux/powerpc64/ioctlent.h, linux/powerpc64/ioctlent1.h,
linux/powerpc64/signalent1.h, linux/powerpc64/syscallent.h,
linux/powerpc64/syscallent1.h, and linux/powerpc64/userent.h.
This commit is contained in:
Дмитрий Левин 2015-01-21 17:04:31 +00:00
parent 69099e714c
commit af3ab5b854
11 changed files with 14 additions and 9 deletions

View File

@ -218,13 +218,16 @@ EXTRA_DIST = \
linux/or1k/syscallent.h \
linux/or1k/userent.h \
linux/personality.h \
linux/powerpc/errnoent1.h \
linux/powerpc/ioctlent.h.in \
linux/powerpc/ioctlent1.h \
linux/powerpc/signalent1.h \
linux/powerpc/syscallent.h \
linux/powerpc/syscallent1.h \
linux/powerpc/userent.h \
linux/powerpc64/errnoent1.h \
linux/powerpc64/ioctlent.h \
linux/powerpc64/ioctlent1.h \
linux/powerpc64/signalent1.h \
linux/powerpc64/syscallent.h \
linux/powerpc64/syscallent1.h \
linux/powerpc64/userent.h \
linux/ptp_clock.h \
linux/reboot.h \
linux/s390/ioctlent.h.in \

View File

@ -52,13 +52,12 @@ alpha*)
AC_DEFINE([ALPHA], 1, [Define for the Alpha architecture.])
;;
powerpc*)
arch=powerpc
AC_DEFINE([POWERPC], 1, [Define for the PowerPC architecture.])
AC_TRY_COMPILE(
[#ifndef __LP64__
# error 32 bit
#endif], [], ppc_bits=64, ppc_bits=32)
if test "$ppc_bits" = "64"; then
#endif], [], arch=powerpc64, arch=powerpc)
if test "$arch" = "powerpc64"; then
AC_DEFINE([POWERPC64], 1, [Define for the PowerPC64 architecture.])
fi
;;

View File

@ -1 +0,0 @@
#include "ioctlent.h"

View File

@ -1 +0,0 @@
#include "syscallent.h"

View File

@ -0,0 +1 @@
#include "../ioctlent.h"

View File

@ -0,0 +1 @@
#include "../ioctlent.h"

View File

@ -0,0 +1 @@
#include "powerpc/syscallent.h"

View File

@ -0,0 +1 @@
#include "powerpc/syscallent.h"

View File

@ -0,0 +1 @@
#include "powerpc/userent.h"