diff options
author | James Booth <boothj5@gmail.com> | 2016-04-19 22:55:48 +0100 |
---|---|---|
committer | Dominik Heidler <dominik@heidler.eu> | 2016-04-26 23:50:55 +0200 |
commit | 9d263d7c83bb04bcd4bdd2d7f384a6bbf36ce986 (patch) | |
tree | e7551b0cdd923e2321aeb46f204d651346c172b8 | |
parent | 261bbd3fc0ca8d28d96d8026f704105a36e19602 (diff) | |
download | profani-tty-9d263d7c83bb04bcd4bdd2d7f384a6bbf36ce986.tar.gz |
Fixed cygwin compile
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | src/tools/http_upload.h | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index f11ed765..19450298 100644 --- a/configure.ac +++ b/configure.ac @@ -291,9 +291,7 @@ AS_IF([test "x$PACKAGE_STATUS" = xdevelopment], AM_LDFLAGS="$AM_LDFLAGS -export-dynamic" AM_CPPFLAGS="$AM_CPPFLAGS $glib_CFLAGS $curl_CFLAGS $libnotify_CFLAGS $PYTHON_CPPFLAGS ${GTK_CFLAGS}" AM_CPPFLAGS="$AM_CPPFLAGS -DTHEMES_PATH=\"\\\"$THEMES_PATH\\\"\" -DICONS_PATH=\"\\\"$ICONS_PATH\\\"\"" -LIBS="$glib_LIBS $curl_LIBS $libnotify_LIBS $PYTHON_LIBS $PYTHON_LDFLAGS ${GTK_LIBS} $LIBS" -AS_IF([test "x$PLATFORM" = xosx], - [LIBS="$LIBS -lgio-2.0"]) +LIBS="$glib_LIBS $curl_LIBS $libnotify_LIBS $PYTHON_LIBS $PYTHON_LDFLAGS ${GTK_LIBS} -lgio-2.0 $LIBS" AC_SUBST(AM_LDFLAGS) AC_SUBST(AM_CFLAGS) diff --git a/src/tools/http_upload.h b/src/tools/http_upload.h index 7bb539cb..28c83d98 100644 --- a/src/tools/http_upload.h +++ b/src/tools/http_upload.h @@ -35,6 +35,11 @@ #ifndef TOOLS_HTTP_UPLOAD_H #define TOOLS_HTTP_UPLOAD_H +#ifdef PLATFORM_CYGWIN +#define SOCKET int +#endif + +#include <sys/socket.h> #include <curl/curl.h> // forward -> ui/win_types.h |