Browse Source

libutil: Wrap pty.h in __{BEGIN,END}_DECLS

android-5
Fredrik Fornwall 9 years ago
parent
commit
f3c180bc25
  1. 2
      packages/libutil/build.sh
  2. 5
      packages/libutil/pty.h

2
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_HOMEPAGE=https://refspecs.linuxbase.org/LSB_2.1.0/LSB-generic/LSB-generic/libutil.html
TERMUX_PKG_DESCRIPTION="Library with terminal functions" TERMUX_PKG_DESCRIPTION="Library with terminal functions"
TERMUX_PKG_VERSION=0.1 TERMUX_PKG_VERSION=0.2
TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_BUILD_IN_SRC=yes
termux_step_make_install () { termux_step_make_install () {

5
packages/libutil/pty.h

@ -1,12 +1,17 @@
#ifndef _PTY_H #ifndef _PTY_H
#define _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 openpty(int* amaster, int* aslave, char* name, struct termios* termp, struct winsize* winp);
int login_tty(int fd); int login_tty(int fd);
int forkpty(int* amaster, char* name, struct termios* termp, struct winsize* winp); int forkpty(int* amaster, char* name, struct termios* termp, struct winsize* winp);
__END_DECLS
#endif #endif

Loading…
Cancel
Save