From: Fredrik Fornwall Date: Sat, 10 Oct 2015 01:42:22 +0000 (-0400) Subject: libutil: Wrap pty.h in __{BEGIN,END}_DECLS X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/termux-packages/commitdiff_plain/f3c180bc2542eabcdf53f6e12d4ba9670156b506?hp=-c libutil: Wrap pty.h in __{BEGIN,END}_DECLS --- f3c180bc2542eabcdf53f6e12d4ba9670156b506 diff --git a/packages/libutil/build.sh b/packages/libutil/build.sh index 5640a57b..1f1a73f6 100644 --- a/packages/libutil/build.sh +++ b/packages/libutil/build.sh @@ -1,6 +1,6 @@ TERMUX_PKG_HOMEPAGE=https://refspecs.linuxbase.org/LSB_2.1.0/LSB-generic/LSB-generic/libutil.html TERMUX_PKG_DESCRIPTION="Library with terminal functions" -TERMUX_PKG_VERSION=0.1 +TERMUX_PKG_VERSION=0.2 TERMUX_PKG_BUILD_IN_SRC=yes termux_step_make_install () { diff --git a/packages/libutil/pty.h b/packages/libutil/pty.h index 899e17d3..832c4e90 100644 --- a/packages/libutil/pty.h +++ b/packages/libutil/pty.h @@ -1,12 +1,17 @@ #ifndef _PTY_H #define _PTY_H +#include #include +__BEGIN_DECLS + int openpty(int* amaster, int* aslave, char* name, struct termios* termp, struct winsize* winp); int login_tty(int fd); int forkpty(int* amaster, char* name, struct termios* termp, struct winsize* winp); +__END_DECLS + #endif