Skip to content

Commit

Permalink
Correcting github issue #2 whereby cygwin reports 'unknown environmen…
Browse files Browse the repository at this point in the history
…t' when we know damn wll that the environment is cygwin. Folks need to help use support cygwin.
  • Loading branch information
Charles Maier on Appslinux01 committed Jul 4, 2013
1 parent 70f7fcf commit 6d6a958
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 4 additions & 2 deletions ether/channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,17 @@
# ifdef LIBPCAP
# error "Don't enable libpcap on Linux. You don't need it."
# endif
#elif defined (WIN32)
#elif defined (WIN32)
# ifndef WINPCAP
# error "Define preprocessor constant WINPCAP on Windows."
# endif
# ifdef LIBPCAP
# error "Don't enable libpcap on Windows. It won't work."
# endif
#elif defined (__CYGWIN__)
# error "cygwin is unsupported!"
#else
# error "Unknown Environment"
# error "unknown environment"
#endif

/*====================================================================*
Expand Down
4 changes: 3 additions & 1 deletion ether/ether.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@
# endif
# include <net/ethernet.h>
# include <net/if.h>
#elif defined (__CYGWIN__)
# error "Cygwin in unsupported!"
#else
#error "Unknown environment"
# error "Unknown environment!"
#endif

/*====================================================================*
Expand Down
4 changes: 3 additions & 1 deletion tools/endian.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@
# define BYTE_ORDER LITTLE_ENDIAN
#elif defined (__vxworks)
# include <netinet/in.h>
#elif defined (__CYGWIN__)
# error "Cygwin is unsupported"
#else
#error "Unknown environment"
# error "Unknown environment"
#endif

/*====================================================================*
Expand Down

0 comments on commit 6d6a958

Please sign in to comment.