From 1642ff85107fa485c3a54871529859720641d6ea Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Tue, 17 Dec 2019 00:24:15 +0100 Subject: [PATCH] jehanne: wrap sys/ioctl.h with `extern "C" { }` (to ease GCC cross compilation) --- newlib/libc/sys/jehanne/sys/ioctl.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/newlib/libc/sys/jehanne/sys/ioctl.h b/newlib/libc/sys/jehanne/sys/ioctl.h index 4ffa4a822..f724453c7 100644 --- a/newlib/libc/sys/jehanne/sys/ioctl.h +++ b/newlib/libc/sys/jehanne/sys/ioctl.h @@ -1,7 +1,7 @@ /* * This file is part of Jehanne. * - * Copyright (C) 2017 Giacomo Tesio + * Copyright (C) 2017-2020 Giacomo Tesio * * This is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -18,6 +18,10 @@ #ifndef _SYS_IOCTL_H #define _SYS_IOCTL_H +#ifdef __cplusplus +extern "C" { +#endif + #define TIOCGWINSZ 1 #define TIOCSWINSZ 2 @@ -31,4 +35,8 @@ struct winsize { int ioctl(int fd, int request, ...); +#ifdef __cplusplus +} +#endif + #endif