Skip to content

Commit

Permalink
Merge pull request #11 from vanous/mingw64
Browse files Browse the repository at this point in the history
small changes for mingw64
  • Loading branch information
nomis52 committed Oct 31, 2015
2 parents 4e63da4 + d66d823 commit ba9e7ee
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
11 changes: 10 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,13 @@
Libartnet is an implementation of the ArtNet protocol. ArtNet allows the
transmission of DMX and related data over IP networks.

For installation notes see the INSTALL file.
For installation notes see the INSTALL file. Run autoreconf -fi to create configure scripts.

Building libartnet with mingw-w64:

set up mingw-w64 (and possibly MSYS).

for a 64-bit build: --host=x86_64-w64-mingw32
for a 32-bit build: --host=i686-w64-mingw32

./configure ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes --host=x86_64-w64-mingw32 --prefix=/some/path/prefix
2 changes: 1 addition & 1 deletion artnet/artnet.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#ifndef WIN32
#include <sys/select.h>
#else
#include <Winsock2.h>
#include <winsock2.h>
typedef unsigned long in_addr_t;
#endif

Expand Down
2 changes: 1 addition & 1 deletion artnet/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#else
typedef int socklen_t;
#include <winsock2.h>
#include <Lm.h>
#include <lm.h>
#include <iphlpapi.h>
#endif

Expand Down
4 changes: 4 additions & 0 deletions artnet/private.h
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,11 @@ typedef struct {
* The main node structure
*/
typedef struct artnet_node_s{
#ifdef WIN32
SOCKET sd;
#else
int sd; // the two sockets
#endif
node_state_t state; // the state struct
node_callbacks_t callbacks; // the callbacks struct
struct ports_s {
Expand Down

0 comments on commit ba9e7ee

Please sign in to comment.