[icecast-dev] [PATCH] Solais has nanosleep, too.

Dale Ghent daleg at elemental.org
Sun Mar 7 00:40:02 PST 2004


This is a patch to configure.in which makes autoconf aware of the
availability of nanosleep() on Solaris.

In Solaris it's in librt, or in libposix4 if you're running an ancient
version (<2.6 I think)

/dale
-------------- next part --------------
Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/icecast/configure.in,v
retrieving revision 1.45
diff -u -r1.45 configure.in
--- configure.in	29 Jan 2004 23:23:52 -0000	1.45
+++ configure.in	7 Mar 2004 08:36:54 -0000
@@ -62,7 +62,9 @@
 dnl Check for types
 
 dnl Checks for library functions.
-AC_CHECK_FUNCS(localtime_r nanosleep poll)
+AC_CHECK_FUNCS(localtime_r poll)
+AC_SEARCH_LIBS(nanosleep, rt posix4, AC_DEFINE(HAVE_NANOSLEEP, 1,
+    [Define if you have nanosleep]))
 XIPH_NET
 
 dnl -- configure options --
𸬵ªÜ†+Þ²m§ÿðÃb¦+ƒö«r¯zÏâqç²Úk¢7œ¶&z– zm§ÿðÃœyƬ¶Šàý:.žË›±Êâmçë¢kaŠÉb²ÛÖ¦zˁëh‰ÇœjË]zúު笷©†Šàr‰íj)âž
'—+a{
+véì¹»®&ÞŠ{ayºÈÚ,¹¸ÞrجçyÕ'²æìr¸›zg¬±¨²Ç§¶Ú-…éb²Ü"–VÞŠ	è­ç~)mz·


More information about the Icecast-dev mailing list