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
3f510ad2
Commit
3f510ad2
authored
Jan 01, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Link with libutil only where needed.
parent
91195437
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
18 deletions
+23
-18
configure
configure
+0
-0
configure.in
configure.in
+4
-1
xterm.c
console/xterm.c
+8
-3
Makefile.in
dlls/winedos/Makefile.in
+1
-1
port.h
include/wine/port.h
+6
-0
port.c
library/port.c
+4
-13
No files found.
configure
View file @
3f510ad2
This diff is collapsed.
Click to expand it.
configure.in
View file @
3f510ad2
...
...
@@ -106,11 +106,14 @@ dnl Check for -lxpg4 for FreeBSD
AC_CHECK_LIB(xpg4,_xpg4_setrunelocale)
dnl Check for -lmmap for OS/2
AC_CHECK_LIB(mmap,mmap)
dnl Check for openpty
UTILLIBS=""
AC_SUBST(UTILLIBS)
AC_CHECK_FUNCS(openpty,,
[AC_CHECK_LIB(util,openpty,
[AC_DEFINE(HAVE_OPENPTY)
LIBS="$LIBS
-lutil"]
UTILLIBS="
-lutil"]
)])
DLLIBS=""
...
...
console/xterm.c
View file @
3f510ad2
...
...
@@ -9,6 +9,7 @@
*/
#include "config.h"
#include "wine/port.h"
#include <stdlib.h>
#include <stdio.h>
...
...
@@ -17,6 +18,12 @@
#include <fcntl.h>
#include <unistd.h>
#include <termios.h>
#ifdef HAVE_LIBUTIL_H
# include <libutil.h>
#endif
#ifdef HAVE_PTY_H
# include <pty.h>
#endif
#include "console.h"
#include "options.h"
...
...
@@ -27,8 +34,6 @@ DEFAULT_DEBUG_CHANNEL(console);
char
console_xterm_prog
[
80
];
static
BOOL
wine_create_console
(
FILE
**
master
,
FILE
**
slave
,
pid_t
*
pid
);
int
wine_openpty
(
int
*
master
,
int
*
slave
,
char
*
name
,
struct
termios
*
term
,
struct
winsize
*
winsize
);
/* The console -- I chose to keep the master and slave
* (UNIX) file descriptors around in case they are needed for
...
...
@@ -129,7 +134,7 @@ static BOOL wine_create_console(FILE **master, FILE **slave, pid_t *pid)
if
(
tcgetattr
(
0
,
&
term
)
<
0
)
return
FALSE
;
term
.
c_lflag
|=
ICANON
;
term
.
c_lflag
&=
~
ECHO
;
if
(
wine_
openpty
(
&
tmaster
,
&
tslave
,
NULL
,
&
term
,
NULL
)
<
0
)
if
(
openpty
(
&
tmaster
,
&
tslave
,
NULL
,
&
term
,
NULL
)
<
0
)
return
FALSE
;
*
master
=
fdopen
(
tmaster
,
"r+"
);
*
slave
=
fdopen
(
tslave
,
"r+"
);
...
...
dlls/winedos/Makefile.in
View file @
3f510ad2
...
...
@@ -5,7 +5,7 @@ VPATH = @srcdir@
MODULE
=
winedos
SOVERSION
=
1.0
IMPORTS
=
user32 kernel32 ntdll
EXTRALIBS
=
@CURSESLIBS@
EXTRALIBS
=
@CURSESLIBS@
@UTILLIBS@
C_SRCS
=
\
dosaspi.c
\
...
...
include/wine/port.h
View file @
3f510ad2
...
...
@@ -113,6 +113,12 @@ int statfs(const char *name, struct statfs *info);
int
strncasecmp
(
const
char
*
str1
,
const
char
*
str2
,
size_t
n
);
#endif
/* !defined(HAVE_STRNCASECMP) */
#ifndef HAVE_OPENPTY
struct
termios
;
struct
winsize
;
int
openpty
(
int
*
master
,
int
*
slave
,
char
*
name
,
struct
termios
*
term
,
struct
winsize
*
winsize
);
#endif
/* HAVE_OPENPTY */
#ifndef HAVE_STRERROR
const
char
*
strerror
(
int
err
);
#endif
/* !defined(HAVE_STRERROR) */
...
...
library/port.c
View file @
3f510ad2
...
...
@@ -34,12 +34,6 @@
#ifdef HAVE_SYSCALL_H
# include <syscall.h>
#endif
#ifdef HAVE_PTY_H
# include <pty.h>
#endif
#ifdef HAVE_LIBUTIL_H
# include <libutil.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
...
...
@@ -197,7 +191,7 @@ int strncasecmp( const char *str1, const char *str2, size_t n )
#endif
/* HAVE_STRNCASECMP */
/***********************************************************************
*
wine_
openpty
* openpty
* NOTE
* It looks like the openpty that comes with glibc in RedHat 5.0
* is buggy (second call returns what looks like a dup of 0 and 1
...
...
@@ -206,12 +200,9 @@ int strncasecmp( const char *str1, const char *str2, size_t n )
* FIXME
* We should have a autoconf check for this.
*/
int
wine_openpty
(
int
*
master
,
int
*
slave
,
char
*
name
,
struct
termios
*
term
,
struct
winsize
*
winsize
)
#ifndef HAVE_OPENPTY
int
openpty
(
int
*
master
,
int
*
slave
,
char
*
name
,
struct
termios
*
term
,
struct
winsize
*
winsize
)
{
#ifdef HAVE_OPENPTY
return
openpty
(
master
,
slave
,
name
,
term
,
winsize
);
#else
const
char
*
ptr1
,
*
ptr2
;
char
pts_name
[
512
];
...
...
@@ -246,8 +237,8 @@ int wine_openpty(int *master, int *slave, char *name,
}
errno
=
EMFILE
;
return
-
1
;
#endif
}
#endif
/* HAVE_OPENPTY */
/***********************************************************************
* getnetbyaddr
...
...
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