chiark / gitweb /
libutil: Wrap pty.h in __{BEGIN,END}_DECLS
authorFredrik Fornwall <fredrik@fornwall.net>
Sat, 10 Oct 2015 01:42:22 +0000 (21:42 -0400)
committerFredrik Fornwall <fredrik@fornwall.net>
Sat, 10 Oct 2015 01:42:22 +0000 (21:42 -0400)
packages/libutil/build.sh
packages/libutil/pty.h

index 5640a57b04e650c469b5ed5ab5e7ca09a6e40c76..1f1a73f67faba60e7f90e7a2e8010da9f046b836 100644 (file)
@@ -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_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 () {
 TERMUX_PKG_BUILD_IN_SRC=yes
 
 termux_step_make_install () {
index 899e17d346ac2f39c80016d2386e65b13805d2ab..832c4e90c43937ce8ae6336bc489ee6427ebf340 100644 (file)
@@ -1,12 +1,17 @@
 #ifndef _PTY_H
 #define _PTY_H
 
 #ifndef _PTY_H
 #define _PTY_H
 
+#include <sys/cdefs.h>
 #include <termios.h>
 
 #include <termios.h>
 
+__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);
 
 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
 #endif