summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authordscho <dscho>2005-12-09 13:56:25 +0000
committerdscho <dscho>2005-12-09 13:56:25 +0000
commit3a8d4bdbe6d264d8f93c75dc62f61ec41e9e7462 (patch)
tree850cf3f85d3247a445f5daa9283840aa4cd507a5 /configure.ac
parent065e2ebb7e4f342a7ceb71216f2e9417cbbdd5f6 (diff)
downloadlibtdevnc-3a8d4bdbe6d264d8f93c75dc62f61ec41e9e7462.tar.gz
libtdevnc-3a8d4bdbe6d264d8f93c75dc62f61ec41e9e7462.zip
work around write() returning ENOENT on Solaris 2.7
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index abb338a..5fe134d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -360,6 +360,14 @@ AM_CONDITIONAL(LINUX, test -c /dev/vcsa1)
AC_CHECK_HEADER(ApplicationServices/ApplicationServices.h, HAVE_OSX="true")
AM_CONDITIONAL(OSX, test "$HAVE_OSX" = "true")
+# On Solaris 2.7, write() returns ENOENT when it really means EAGAIN
+AH_TEMPLATE(ENOENT_WORKAROUND, [work around when write() returns ENOENT but does not mean it])
+case `(uname -sr) 2>/dev/null` in
+ "SunOS 5.7")
+ AC_DEFINE(ENOENT_WORKAROUND)
+ ;;
+esac
+
# Check for rpm SOURCES path
printf "checking for rpm sources path... "
RPMSOURCEDIR="NOT-FOUND"