From 02d0bbc0a1d04afa97e560c2707129909aaf2625 Mon Sep 17 00:00:00 2001 From: tcsullivan Date: Sun, 2 Dec 2018 14:18:36 -0500 Subject: working toochain build script --- src/pdclib/platform/stmos/include/pdclib/_PDCLIB_config.h | 2 +- src/pdclib/platform/stmos/include/sys/types.h | 2 ++ src/pdclib/platform/stmos/include/unistd.h | 6 ++++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/pdclib/platform/stmos/include/sys/types.h create mode 100644 src/pdclib/platform/stmos/include/unistd.h (limited to 'src/pdclib/platform') diff --git a/src/pdclib/platform/stmos/include/pdclib/_PDCLIB_config.h b/src/pdclib/platform/stmos/include/pdclib/_PDCLIB_config.h index 9731f86..3733edb 100644 --- a/src/pdclib/platform/stmos/include/pdclib/_PDCLIB_config.h +++ b/src/pdclib/platform/stmos/include/pdclib/_PDCLIB_config.h @@ -143,7 +143,7 @@ struct _PDCLIB_lldiv_t #define _PDCLIB_SIG_ATOMIC INT /* Result type of the 'sizeof' operator (must be unsigned) */ -#define _PDCLIB_size unsigned long +#define _PDCLIB_size unsigned int #define _PDCLIB_SIZE ULONG /* Large enough an integer to hold all character codes of the largest supported diff --git a/src/pdclib/platform/stmos/include/sys/types.h b/src/pdclib/platform/stmos/include/sys/types.h new file mode 100644 index 0000000..53c0fe2 --- /dev/null +++ b/src/pdclib/platform/stmos/include/sys/types.h @@ -0,0 +1,2 @@ +// placeholder for gcc compilation + diff --git a/src/pdclib/platform/stmos/include/unistd.h b/src/pdclib/platform/stmos/include/unistd.h new file mode 100644 index 0000000..4003d7c --- /dev/null +++ b/src/pdclib/platform/stmos/include/unistd.h @@ -0,0 +1,6 @@ +#ifndef UNISTD_H_ +#define UNISTD_H_ + +typedef int pid_t; + +#endif // UNISTD_H_ -- cgit v1.2.3