Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix several issues when building DDS on Windows with MinGW #6

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
a80846f
Merge pull request #1 from qeo/master
ivan-galvez Jul 8, 2016
94ee04b
Do not include Posix sys/socket.h.
ivan-galvez May 24, 2016
9600d27
Fix nonmatching types on Windows implementation of socket related fun…
ivan-galvez May 24, 2016
86fe7ad
Do not include arpa/inet.h on non-posix systems.
ivan-galvez May 24, 2016
29f71b0
Use C-style comments.
ivan-galvez May 24, 2016
07d26a6
Added BSD implementation of fnmatch for Windows systems.
ivan-galvez Jul 8, 2016
38a5b2d
Fix Mingw32 specific errors compiling on Windows.
ivan-galvez May 27, 2016
c4a4424
Initialize static mutex at acquisition.
ivan-galvez May 27, 2016
14371b3
Do not include poll.h on WIN32.
ivan-galvez May 31, 2016
fcec408
Do not redifine vsnprintf for MinGW compiler.
ivan-galvez May 31, 2016
c273ba3
Move MSG_NO_SIGNAL definition to header.
ivan-galvez May 31, 2016
c1bbc4f
Fixed several errors in Windows Dyn IP implementation.
ivan-galvez May 31, 2016
1a62c3c
Move implementation of static mutex creation to .c.
ivan-galvez Jun 1, 2016
b8689a0
Export 'fatal' simbol used on several tests.
ivan-galvez Jun 1, 2016
1c700d3
Only build gettimeofday on Visual Studio.
ivan-galvez Jun 1, 2016
2f1f159
Patch for usleep in Windows
santiagomayoral Jun 2, 2016
c60a3e3
Add missing header to build certain tests on Windows.
ivan-galvez Jun 2, 2016
a8fc64f
Additional guards to build api test on Windows.
ivan-galvez Jun 2, 2016
2e23f76
Export additional symbols required to build test partitions.
ivan-galvez Jun 3, 2016
7e95d86
Fixed compilation of test chat on Windows.
ivan-galvez Jun 3, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixed compilation of test chat on Windows.
  • Loading branch information
ivan-galvez committed Jul 11, 2016
commit 7e95d863af8d419db78dcf183feb63894bdcdbde
2 changes: 2 additions & 0 deletions dds/apps/chat/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#ifndef _WIN32
#include <poll.h>
#endif
#include "thread.h"
#include "libx.h"
#include "tty.h"
Expand Down
9 changes: 5 additions & 4 deletions dds/src/include/tty.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
#ifndef __tty_h_
#define __tty_h_

#include "dds/dds_error.h"
#include "sock.h"

extern HANDLE tty_stdin;
DDS_EXPORT extern HANDLE tty_stdin;
extern unsigned tty_width, tty_height;

void tty_init (void);
DDS_EXPORT void tty_init (void);

/* Initialize the terminal. Sets Raw mode and installs an exit handler to
restore the mode on exit. */
Expand Down Expand Up @@ -146,7 +147,7 @@ void tty_restore_cursor_attr (void);
/* Restore the cursor position and attributes. */


void tty_input (HANDLE fd, short events, void *udata);
DDS_EXPORT void tty_input (HANDLE fd, short events, void *udata);

/* Utility function to queue characters in an input buffer. */

Expand All @@ -155,7 +156,7 @@ int tty_getch (void);
/* Attempts to read a single character from the input buffer. Blocks until
a character is available. */

int tty_gets (size_t nchars, char buf [], int number, int echo);
DDS_EXPORT int tty_gets (size_t nchars, char buf [], int number, int echo);

/* Attempts to read a complete line from the input buffer. Blocks until an
end-of-line is entered. If the number argument is set, only numeric
Expand Down