diff options
author | Milan Crha <mcrha@redhat.com> | 2014-08-25 17:36:19 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-08-25 17:36:19 +0800 |
commit | 396e5e82c16d3d81e1e575e02fe05a77149ed0ea (patch) | |
tree | 655b4918d46b56a1a638f6c4d4476c727530ea17 /win32/patches/liboauth.patch | |
parent | 9a8604400946bf0fe5d1fa227fa2524e9baf4fb0 (diff) | |
download | gsoc2013-evolution-396e5e82c16d3d81e1e575e02fe05a77149ed0ea.tar gsoc2013-evolution-396e5e82c16d3d81e1e575e02fe05a77149ed0ea.tar.gz gsoc2013-evolution-396e5e82c16d3d81e1e575e02fe05a77149ed0ea.tar.bz2 gsoc2013-evolution-396e5e82c16d3d81e1e575e02fe05a77149ed0ea.tar.lz gsoc2013-evolution-396e5e82c16d3d81e1e575e02fe05a77149ed0ea.tar.xz gsoc2013-evolution-396e5e82c16d3d81e1e575e02fe05a77149ed0ea.tar.zst gsoc2013-evolution-396e5e82c16d3d81e1e575e02fe05a77149ed0ea.zip |
Add Win32 build scripts into sources
See win32/readme.txt for more information.
Diffstat (limited to 'win32/patches/liboauth.patch')
-rw-r--r-- | win32/patches/liboauth.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/win32/patches/liboauth.patch b/win32/patches/liboauth.patch new file mode 100644 index 0000000000..9613332bca --- /dev/null +++ b/win32/patches/liboauth.patch @@ -0,0 +1,56 @@ +diff -upr -x .deps -x .libs -x '*.la' liboauth-1.0.1.old/src/Makefile liboauth-1.0.1/src/Makefile +--- liboauth-1.0.1.old/src/Makefile 2014-06-20 20:41:31 +0000 ++++ liboauth-1.0.1/src/Makefile 2014-06-20 20:38:41 +0000 +@@ -249,7 +249,7 @@ ACLOCAL_AMFLAGS = -I m4 + lib_LTLIBRARIES = liboauth.la + include_HEADERS = oauth.h + liboauth_la_SOURCES = oauth.c config.h hash.c xmalloc.c xmalloc.h oauth_http.c +-liboauth_la_LDFLAGS = -Wall -export-symbols-regex '^oauth_.*' -Wl,--as-needed -version-info 8:5:8 ++liboauth_la_LDFLAGS = -Wall -export-symbols-regex '^oauth_.*' -Wl,--as-needed -version-info 8:5:8 -no-undefined + liboauth_la_LIBADD = -LC:/MinGW/msys/1.0/build/local/deps/lib -lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 + liboauth_la_CFLAGS = -Wall -IC:/MinGW/msys/1.0/build/local/deps/include/nss -IC:/MinGW/msys/1.0/build/local/deps/include/nspr + all: config.h +diff -upr -x .deps -x .libs -x '*.la' liboauth-1.0.1.old/src/oauth.c liboauth-1.0.1/src/oauth.c +--- liboauth-1.0.1.old/src/oauth.c 2014-06-20 20:43:07 +0000 ++++ liboauth-1.0.1/src/oauth.c 2014-05-17 20:27:28 +0000 +@@ -48,8 +48,10 @@ + #include <unistd.h> + #else + #define snprintf _snprintf ++#ifndef strncasecmp + #define strncasecmp strnicmp + #endif ++#endif + + /** + * Base64 encode one byte +@@ -520,7 +522,7 @@ char *oauth_serialize_url_parameters (in + */ + #if !defined HAVE_OPENSSL_HMAC_H && !defined USE_NSS + /* pre liboauth-0.7.2 and possible future versions that don't use OpenSSL or NSS */ +-char *oauth_gen_nonce() { ++char *oauth_gen_nonce(void) { + char *nc; + static int rndinit = 1; + const char *chars = "abcdefghijklmnopqrstuvwxyz" +@@ -557,7 +559,7 @@ char *oauth_gen_nonce() { + # define MY_RAND RAND_bytes + # define MY_SRAND ; + #endif +-char *oauth_gen_nonce() { ++char *oauth_gen_nonce(void) { + char *nc; + unsigned char buf; + const char *chars = "abcdefghijklmnopqrstuvwxyz" +diff -upr -x .deps -x .libs -x '*.la' liboauth-1.0.1.old/src/oauth.h liboauth-1.0.1/src/oauth.h +--- liboauth-1.0.1.old/src/oauth.h 2014-06-20 20:43:07 +0000 ++++ liboauth-1.0.1/src/oauth.h 2014-05-17 20:27:28 +0000 +@@ -262,7 +262,7 @@ char *oauth_serialize_url_parameters (in + * + * @return zero terminated random string. + */ +-char *oauth_gen_nonce(); ++char *oauth_gen_nonce(void); + + /** + * string compare function for oauth parameters. |