Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
0552ea2e
Commit
0552ea2e
authored
Feb 09, 2003
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support for OS X is better now
parent
722577d8
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
9 deletions
+16
-9
configure.ac
configure.ac
+1
-0
Makefile.am
examples/Makefile.am
+1
-0
mac.c
examples/mac.c
+0
-2
Makefile.am
vncterm/Makefile.am
+1
-1
VNCommand.c
vncterm/VNCommand.c
+13
-6
No files found.
configure.ac
View file @
0552ea2e
...
...
@@ -74,6 +74,7 @@ AC_C_INLINE
AC_C_BIGENDIAN
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_HEADER_SYS_WAIT
AC_TYPE_SOCKLEN_T
AC_CREATE_STDINT_H(include/rfbint.h)
...
...
examples/Makefile.am
View file @
0552ea2e
...
...
@@ -4,6 +4,7 @@ endif
if
OSX
MAC
=
mac
mac_LDFLAGS
=
-framework
ApplicationServices
-framework
Carbon
-framework
IOKit
endif
noinst_HEADERS
=
radon.h
...
...
examples/mac.c
View file @
0552ea2e
...
...
@@ -27,8 +27,6 @@
*
*/
#define LOCAL_CONTROL
#ifdef LOCAL_CONTROL
#include "1instance.c"
#endif
...
...
vncterm/Makefile.am
View file @
0552ea2e
CONSOLE_SRCS
=
VNConsole.c
noinst_HEADERS
=
VNConsole.h
noinst_HEADERS
=
VNConsole.h
vga.h
LDADD
=
-L
..
-lvncserver
INCLUDES
=
-I
.
-I
../include
...
...
vncterm/VNCommand.c
View file @
0552ea2e
#include <stdio.h>
#include <stdlib.h>
#include "VNConsole.h"
#include "vga.h"
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
#include <errno.h>
#include "VNConsole.h"
#include "vga.h"
int
main
(
int
argc
,
char
**
argv
)
...
...
@@ -45,7 +52,7 @@ int main(int argc, char **argv)
char
buffer
[
1024
];
fd_set
fs
,
fs1
/*,ifs,ifs1*/
;
struct
timeval
tv
,
tv1
;
int
i
,
c
=
1
,
num_fds
,
max_fd
=
out
[
0
];
int
i
,
c
=
1
,
num_fds
,
max_fd
=
out
[
0
]
,
status
;
FILE
*
input_pipe
;
vncConsolePtr
console
=
vcGetConsole
(
&
serverArgc
,
argv
,
80
,
25
,
&
vgaFont
,
FALSE
);
if
(
interactive
)
...
...
@@ -61,7 +68,7 @@ int main(int argc, char **argv)
input_pipe
=
fdopen
(
in
[
1
],
"w"
);
setbuf
(
input_pipe
,
NULL
);
while
(
c
||
getpgid
(
pid
)
>
=
0
)
{
while
(
c
||
waitpid
(
pid
,
&
status
,
WNOHANG
)
=
=
0
)
{
/* event loop */
vcProcessEvents
(
console
);
...
...
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