diff options
author | Siraj Razick <siraj.razick@collabora.co.uk> | 2012-01-02 13:12:08 -0500 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2012-01-03 10:59:25 +0000 |
commit | b5bc31a5084e05d7e4251a37f628f7835928ab1c (patch) | |
tree | 19f8c58a77944bf429e8841bc4a31ec1d56a501f /data | |
parent | 3cdfbe659bbe3a7e217486c2b0a957880b3c24ea (diff) |
Make gabble cross compile with mingw32
The patch provides the changes required to make gabble
compile under mingw32.
- Index is replaced with strchr since index is deprecated
and not included in mingw32 sdk
- D_WIN32_WINNT=0x0501 is defined to make getnameinfo work
- And other compile fixes
Diffstat (limited to 'data')
-rw-r--r-- | data/Makefile.am | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index 8d7e299c3..66fa514dd 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -15,6 +15,10 @@ org.freedesktop.Telepathy.ConnectionManager.gabble.service: gabble.service.in \ CLEANFILES = $(service_DATA) $(manager_DATA) +if WINDOWS + ext = ".exe" +endif + $(manager_DATA): ../src/write-mgr-file.c ../src/protocol.c ../src/protocol.h - @$(MAKE) -C ../src write-mgr-file - $(AM_V_GEN)../src/write-mgr-file > $@ + @$(MAKE) -C ../src write-mgr-file$(ext) + $(AM_V_GEN)../src/write-mgr-file$(ext) > $@ |