Rearrange the libc config files, ready for adding new options.

This commit is contained in:
David Given 2018-06-22 23:43:15 +02:00
parent b21c099a57
commit 9bf1d548fc
22 changed files with 36 additions and 29 deletions

View file

@ -1,6 +1,6 @@
#ifndef _ACK_CONFIG_H #ifndef _ACK_CONFIG_H
#define _ACK_CONFIG_H #define _ACK_CONFIG_H
#define ACKCONF_TIME_IS_A_SYSCALL #include <ack/plat.h>
#endif #endif

View file

@ -13,6 +13,7 @@ end
addheader("", filenamesof("./*.h")) addheader("", filenamesof("./*.h"))
addheader("sys/", filenamesof("./sys/*.h")) addheader("sys/", filenamesof("./sys/*.h"))
addheader("ack/", filenamesof("./ack/*.h"))
acklibrary { acklibrary {
name = "headers", name = "headers",

View file

@ -3,8 +3,8 @@
* $Revision$ * $Revision$
*/ */
#ifndef _ACK_CONFIG_H #ifndef _ACK_PLAT_H
#define _ACK_CONFIG_H #define _ACK_PLAT_H
/* We're providing a time() system call rather than wanting a wrapper around /* We're providing a time() system call rather than wanting a wrapper around
* gettimeofday() in the libc. */ * gettimeofday() in the libc. */

View file

@ -8,7 +8,7 @@ local function addheader(h)
packagemap["$(PLATIND)/cpm/include/"..h] = "./"..h packagemap["$(PLATIND)/cpm/include/"..h] = "./"..h
end end
addheader("ack/config.h") addheader("ack/plat.h")
addheader("cpm.h") addheader("cpm.h")
addheader("unistd.h") addheader("unistd.h")

View file

@ -0,0 +1,6 @@
#ifndef _ACK_PLAT_H
#define _ACK_PLAT_H
#define ACKCONF_TIME_IS_A_SYSCALL
#endif

View file

@ -8,7 +8,7 @@ local function addheader(h)
packagemap["$(PLATIND)/em22/include/"..h] = "./"..h packagemap["$(PLATIND)/em22/include/"..h] = "./"..h
end end
addheader("ack/config.h") addheader("ack/plat.h")
addheader("sys/types.h") addheader("sys/types.h")
addheader("sys/timeb.h") addheader("sys/timeb.h")
addheader("unistd.h") addheader("unistd.h")

View file

@ -3,8 +3,8 @@
* $Revision$ * $Revision$
*/ */
#ifndef _ACK_CONFIG_H #ifndef _ACK_PLAT_H
#define _ACK_CONFIG_H #define _ACK_PLAT_H
/* We're providing a time() system call rather than wanting a wrapper around /* We're providing a time() system call rather than wanting a wrapper around
* gettimeofday() in the libc. */ * gettimeofday() in the libc. */

View file

@ -8,7 +8,7 @@ local function addheader(h)
packagemap["$(PLATIND)/linux386/include/"..h] = "./"..h packagemap["$(PLATIND)/linux386/include/"..h] = "./"..h
end end
addheader("ack/config.h") addheader("ack/plat.h")
addheader("sys/ioctl.h") addheader("sys/ioctl.h")
addheader("unistd.h") addheader("unistd.h")

View file

@ -3,8 +3,8 @@
* $Revision: 1.1 $ * $Revision: 1.1 $
*/ */
#ifndef _ACK_CONFIG_H #ifndef _ACK_PLAT_H
#define _ACK_CONFIG_H #define _ACK_PLAT_H
/* We're providing a time() system call rather than wanting a wrapper around /* We're providing a time() system call rather than wanting a wrapper around
* gettimeofday() in the libc. */ * gettimeofday() in the libc. */

View file

@ -8,7 +8,7 @@ local function addheader(h)
packagemap["$(PLATIND)/linux68k/include/"..h] = "./"..h packagemap["$(PLATIND)/linux68k/include/"..h] = "./"..h
end end
addheader("ack/config.h") addheader("ack/plat.h")
addheader("sys/ioctl.h") addheader("sys/ioctl.h")
addheader("unistd.h") addheader("unistd.h")

View file

@ -3,8 +3,8 @@
* $Revision: 1.1 $ * $Revision: 1.1 $
*/ */
#ifndef _ACK_CONFIG_H #ifndef _ACK_PLAT_H
#define _ACK_CONFIG_H #define _ACK_PLAT_H
/* We're providing a time() system call rather than wanting a wrapper around /* We're providing a time() system call rather than wanting a wrapper around
* gettimeofday() in the libc. */ * gettimeofday() in the libc. */

View file

@ -8,7 +8,7 @@ local function addheader(h)
packagemap["$(PLATIND)/linuxppc/include/"..h] = "./"..h packagemap["$(PLATIND)/linuxppc/include/"..h] = "./"..h
end end
addheader("ack/config.h") addheader("ack/plat.h")
addheader("sys/ioctl.h") addheader("sys/ioctl.h")
addheader("unistd.h") addheader("unistd.h")

View file

@ -3,8 +3,8 @@
* $Revision$ * $Revision$
*/ */
#ifndef _ACK_CONFIG_H #ifndef _ACK_PLAT_H
#define _ACK_CONFIG_H #define _ACK_PLAT_H
/* We're providing a time() system call rather than wanting a wrapper around /* We're providing a time() system call rather than wanting a wrapper around
* gettimeofday() in the libc. */ * gettimeofday() in the libc. */

View file

@ -8,7 +8,7 @@ local function addheader(h)
packagemap["$(PLATIND)/osx/include/"..h] = "plat/osx/include/"..h packagemap["$(PLATIND)/osx/include/"..h] = "plat/osx/include/"..h
end end
addheader("ack/config.h") addheader("ack/plat.h")
addheader("sys/dirent.h") addheader("sys/dirent.h")
addheader("sys/mman.h") addheader("sys/mman.h")
addheader("sys/stat.h") addheader("sys/stat.h")

View file

@ -3,8 +3,8 @@
* $Revision$ * $Revision$
*/ */
#ifndef _ACK_CONFIG_H #ifndef _ACK_PLAT_H
#define _ACK_CONFIG_H #define _ACK_PLAT_H
/* We're providing a time() system call rather than wanting a wrapper around /* We're providing a time() system call rather than wanting a wrapper around
* gettimeofday() in the libc. */ * gettimeofday() in the libc. */

View file

@ -8,7 +8,7 @@ local function addheader(h)
packagemap["$(PLATIND)/pc86/include/"..h] = "./"..h packagemap["$(PLATIND)/pc86/include/"..h] = "./"..h
end end
addheader("ack/config.h") addheader("ack/plat.h")
addheader("unistd.h") addheader("unistd.h")
acklibrary { acklibrary {

View file

@ -5,8 +5,8 @@
* See the file 'Copying' in the root of the distribution for the full text. * See the file 'Copying' in the root of the distribution for the full text.
*/ */
#ifndef _ACK_CONFIG_H #ifndef _ACK_PLAT_H
#define _ACK_CONFIG_H #define _ACK_PLAT_H
/* We're providing a time() system call rather than wanting a wrapper around /* We're providing a time() system call rather than wanting a wrapper around
* gettimeofday() in the libc. */ * gettimeofday() in the libc. */

View file

@ -8,7 +8,7 @@ local function addheader(h)
packagemap["$(PLATIND)/pdpv7/include/"..h] = "./"..h packagemap["$(PLATIND)/pdpv7/include/"..h] = "./"..h
end end
addheader("ack/config.h") addheader("ack/plat.h")
addheader("sys/select.h") addheader("sys/select.h")
addheader("termios.h") addheader("termios.h")
addheader("unistd.h") addheader("unistd.h")

View file

@ -3,8 +3,8 @@
* $Revision: 1.1 $ * $Revision: 1.1 $
*/ */
#ifndef _ACK_CONFIG_H #ifndef _ACK_PLAT_H
#define _ACK_CONFIG_H #define _ACK_PLAT_H
/* We're providing a time() system call rather than wanting a wrapper around /* We're providing a time() system call rather than wanting a wrapper around
* gettimeofday() in the libc. */ * gettimeofday() in the libc. */

View file

@ -8,7 +8,7 @@ local function addheader(h)
packagemap["$(PLATIND)/qemuppc/include/"..h] = "./"..h packagemap["$(PLATIND)/qemuppc/include/"..h] = "./"..h
end end
addheader("ack/config.h") addheader("ack/plat.h")
addheader("sys/ioctl.h") addheader("sys/ioctl.h")
addheader("unistd.h") addheader("unistd.h")

View file

@ -5,8 +5,8 @@
* See the file 'Copying' in the root of the distribution for the full text. * See the file 'Copying' in the root of the distribution for the full text.
*/ */
#ifndef _ACK_CONFIG_H #ifndef _ACK_PLAT_H
#define _ACK_CONFIG_H #define _ACK_PLAT_H
/* We're providing a time() system call rather than wanting a wrapper around /* We're providing a time() system call rather than wanting a wrapper around
* gettimeofday() in the libc. */ * gettimeofday() in the libc. */

View file

@ -8,7 +8,7 @@ local function addheader(h)
packagemap["$(PLATIND)/rpi/include/"..h] = "./"..h packagemap["$(PLATIND)/rpi/include/"..h] = "./"..h
end end
addheader("ack/config.h") addheader("ack/plat.h")
addheader("pi.h") addheader("pi.h")
addheader("sys/select.h") addheader("sys/select.h")
addheader("termios.h") addheader("termios.h")