Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2d7be870
Commit
2d7be870
authored
Dec 05, 1999
by
Marcus Meissner
Committed by
Alexandre Julliard
Dec 05, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the real glibc openpty if present.
parent
fe088499
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
0 deletions
+20
-0
configure
configure
+0
-0
configure.in
configure.in
+7
-0
config.h.in
include/config.h.in
+6
-0
port.c
misc/port.c
+7
-0
No files found.
configure
View file @
2d7be870
This diff is collapsed.
Click to expand it.
configure.in
View file @
2d7be870
...
...
@@ -100,6 +100,12 @@ dnl Check for -lxpg4 for FreeBSD
AC_CHECK_LIB(xpg4,setrunelocale)
dnl Check for -lmmap for OS/2
AC_CHECK_LIB(mmap,mmap)
dnl Check for openpty
AC_CHECK_FUNCS(openpty,,
AC_CHECK_LIB(util,openpty,
AC_DEFINE(HAVE_OPENPTY)
LIBS="$LIBS -lutil"
))
AC_CHECK_HEADERS(dlfcn.h,
AC_CHECK_FUNCS(dlopen,
...
...
@@ -562,6 +568,7 @@ AC_CHECK_HEADERS(\
net/if.h \
netinet/in.h \
netinet/tcp.h \
pty.h \
resolv.h \
sched.h \
socket.h \
...
...
include/config.h.in
View file @
2d7be870
...
...
@@ -182,6 +182,9 @@
/* Define if you have the memmove function. */
#undef HAVE_MEMMOVE
/* Define if you have the openpty function. */
#undef HAVE_OPENPTY
/* Define if you have the rfork function. */
#undef HAVE_RFORK
...
...
@@ -305,6 +308,9 @@
/* Define if you have the <netinet/tcp.h> header file. */
#undef HAVE_NETINET_TCP_H
/* Define if you have the <pty.h> header file. */
#undef HAVE_PTY_H
/* Define if you have the <resolv.h> header file. */
#undef HAVE_RESOLV_H
...
...
misc/port.c
View file @
2d7be870
...
...
@@ -29,6 +29,9 @@
#ifdef HAVE_SYSCALL_H
# include <syscall.h>
#endif
#ifdef HAVE_PTY_H
# include <pty.h>
#endif
/***********************************************************************
* usleep
...
...
@@ -166,6 +169,9 @@ int strncasecmp( const char *str1, const char *str2, size_t n )
int
wine_openpty
(
int
*
master
,
int
*
slave
,
char
*
name
,
struct
termios
*
term
,
struct
winsize
*
winsize
)
{
#ifdef HAVE_OPENPTY
return
openpty
(
master
,
slave
,
name
,
term
,
winsize
);
#else
char
*
ptr1
,
*
ptr2
;
char
pts_name
[
512
];
...
...
@@ -198,6 +204,7 @@ int wine_openpty(int *master, int *slave, char *name,
}
}
return
-
1
;
#endif
}
/***********************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment