Futile attempts to build Windows version in Cygwin.
This commit is contained in:
1 parent
7d48bcdac2
commit
ab8bb16485
3 files changed
+17
-2
No files matched your search
@@ -152,3 +152,12 @@ Open source implementations of protcol
|
|||||||
* Teensy (C) https://github.com/jkerdels/open_imme/tree/master/tools/teensy-prog
|
* Teensy (C) https://github.com/jkerdels/open_imme/tree/master/tools/teensy-prog
|
||||||
* Linux GPIO sysfs (C) https://github.com/ffainelli/cc2530prog
|
* Linux GPIO sysfs (C) https://github.com/ffainelli/cc2530prog
|
||||||
|
|
||||||
|
Building for Windows
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
`cctl-prog` is currently built for Windows using the mingw32 cross compiler from Linux.
|
||||||
|
|
||||||
|
make -f Makefile.mingw32
|
||||||
|
|
||||||
|
Compiling cctl-prog with cygwin's GCC may not work.
|
||||||
|
|
||||||
@@ -9,6 +9,10 @@
|
|||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
#define WIN32 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#define SERIAL_TIMEOUT 2
|
#define SERIAL_TIMEOUT 2
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
@@ -18,8 +22,6 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <wincon.h>
|
#include <wincon.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#define O_NOCTTY 0
|
|
||||||
#define O_NDELAY 0
|
|
||||||
#define B115200 115200
|
#define B115200 115200
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,10 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#ifdef __CYGWIN__
|
||||||
|
#define WIN32 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in new issue
Block a user