From 630203f8700d8dcf9be661695418dbbddbe42df4 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 15 Feb 2013 22:01:44 +0100 Subject: util: fixed building on mingw32 --- util/src/platforms/windows/Makefile.am | 27 +++++++++++++++++++++++++++ util/src/platforms/windows/axutil_windows.c | 4 +++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 util/src/platforms/windows/Makefile.am (limited to 'util/src/platforms/windows') diff --git a/util/src/platforms/windows/Makefile.am b/util/src/platforms/windows/Makefile.am new file mode 100644 index 0000000..c0230d2 --- /dev/null +++ b/util/src/platforms/windows/Makefile.am @@ -0,0 +1,27 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +if HOST_OS_MINGW +noinst_LTLIBRARIES = libaxis2_windows.la + +libaxis2_windows_la_SOURCES = axutil_windows.c uuid_gen_windows.c\ + date_time_util_windows.c dir_windows.c\ + getopt_windows.c\ + thread_windows.c thread_mutex_windows.c +libaxis2_windows_la_LIBADD = -lws2_32 -lrpcrt4 + +INCLUDES = -I$(top_builddir)/include \ + -I$(top_builddir)/include/platforms \ + -I$(top_builddir)/include/platforms/windows +endif diff --git a/util/src/platforms/windows/axutil_windows.c b/util/src/platforms/windows/axutil_windows.c index 5e37abb..add6cc2 100644 --- a/util/src/platforms/windows/axutil_windows.c +++ b/util/src/platforms/windows/axutil_windows.c @@ -17,7 +17,9 @@ #include #include - +#ifdef __MINGW32__ +#include +#endif /* -- cgit v1.1-32-gdbae