diff options
author | Angelo Mantellini <manangel@cisco.com> | 2019-10-09 10:17:00 +0200 |
---|---|---|
committer | Angelo Mantellini <manangel@cisco.com> | 2019-10-14 15:49:08 +0200 |
commit | e7a7324c575f9d0807dc32ca8ae95273f4615831 (patch) | |
tree | 899e87bbac52cb04e293af38bcdee55b079b5636 /libparc/parc/algol | |
parent | e739ca2affa1237089857b5e1c87afeac25449aa (diff) |
[CICN-21] build for arm64 ubuntu 18
Signed-off-by: Angelo Mantellini <manangel@cisco.com>
Change-Id: I9895cbfdc1c32a46d67f40310ef08c8b66b02664
Diffstat (limited to 'libparc/parc/algol')
-rw-r--r-- | libparc/parc/algol/parc_DisplayIndented.c | 3 | ||||
-rw-r--r-- | libparc/parc/algol/parc_Object.c | 2 | ||||
-rw-r--r-- | libparc/parc/algol/parc_Time.c | 15 | ||||
-rw-r--r-- | libparc/parc/algol/parc_URI.c | 3 |
4 files changed, 23 insertions, 0 deletions
diff --git a/libparc/parc/algol/parc_DisplayIndented.c b/libparc/parc/algol/parc_DisplayIndented.c index a17e7f04..a5b9098f 100644 --- a/libparc/parc/algol/parc_DisplayIndented.c +++ b/libparc/parc/algol/parc_DisplayIndented.c @@ -27,6 +27,9 @@ #include <parc/assert/parc_Assert.h> #include <parc/algol/parc_DisplayIndented.h> +int asprintf(char **strp, const char *fmt, ...); +int vasprintf(char **strp, const char *fmt, va_list ap); + static char *_spaces = " "; static size_t _indentationFactor = 2; diff --git a/libparc/parc/algol/parc_Object.c b/libparc/parc/algol/parc_Object.c index 422a97f7..4f2b3359 100644 --- a/libparc/parc/algol/parc_Object.c +++ b/libparc/parc/algol/parc_Object.c @@ -36,6 +36,8 @@ #include <parc/algol/parc_Hash.h> #include <parc/concurrent/parc_AtomicUint64.h> +int asprintf(char **strp, const char *fmt, ...); + typedef struct parc_object_locking { pthread_mutex_t lock; pthread_cond_t notification; diff --git a/libparc/parc/algol/parc_Time.c b/libparc/parc/algol/parc_Time.c index 8f292c1b..7ed9ef09 100644 --- a/libparc/parc/algol/parc_Time.c +++ b/libparc/parc/algol/parc_Time.c @@ -17,6 +17,13 @@ #include <sys/time.h> #endif +#ifdef __linux__ +#if __GNUC__ >= 8 +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wformat-truncation" +#endif +#endif + #include <config.h> #include <stdio.h> #include <string.h> @@ -26,6 +33,8 @@ #include <parc/algol/parc_Time.h> #include <parc/algol/parc_Memory.h> +int asprintf(char **strp, const char *fmt, ...); + char * parcTime_TimevalAsString(struct timeval timeval) { @@ -169,3 +178,9 @@ parcTime_NowNanoseconds(void) uint64_t result = timeval.tv_sec * 1000000000 + timeval.tv_usec * 1000; return result; } + +#ifdef __linux__ +#if __GNUC__ >= 8 +#pragma GCC diagnostic pop +#endif +#endif diff --git a/libparc/parc/algol/parc_URI.c b/libparc/parc/algol/parc_URI.c index 94f74981..bac6c5f6 100644 --- a/libparc/parc/algol/parc_URI.c +++ b/libparc/parc/algol/parc_URI.c @@ -45,6 +45,9 @@ char *gen_delims = ":/?#[]@"; #define isReserved(c) (isGenDelims(c) || isSubDelims(c)) #define isPchar(c) (isUnreserved(c) || isSubDelims(c) || c == ':' || c == '@') + +int vasprintf(char **strp, const char *fmt, va_list ap); + struct parc_uri { char *scheme; char *authority; |