[polypaudio-commits] r793 - in /trunk: configure.ac src/polypcore/util.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Mon Apr 24 08:07:10 PDT 2006


Author: ossman
Date: Mon Apr 24 17:07:09 2006
New Revision: 793

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=793&root=polypaudio&view=rev
Log:
chown() and chmod() aren't available on Windows.

Modified:
    trunk/configure.ac
    trunk/src/polypcore/util.c

Modified: trunk/configure.ac
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/configure.ac?rev=793&root=polypaudio&r1=792&r2=793&view=diff
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Mon Apr 24 17:07:09 2006
@@ -219,8 +219,8 @@
 AC_FUNC_FORK
 AC_FUNC_GETGROUPS
 AC_FUNC_SELECT_ARGTYPES
-AC_CHECK_FUNCS([getaddrinfo getgrgid_r getpwuid_r gettimeofday getuid \
-    inet_ntop inet_pton nanosleep setpgid setsid sigaction sleep])
+AC_CHECK_FUNCS([chmod chown getaddrinfo getgrgid_r getpwuid_r gettimeofday \
+    getuid inet_ntop inet_pton nanosleep setpgid setsid sigaction sleep])
 AC_CHECK_FUNCS([mkfifo], [HAVE_MKFIFO=1], [HAVE_MKFIFO=0])
 
 AM_CONDITIONAL(HAVE_MKFIFO, test "x$HAVE_MKFIFO" = "x1")

Modified: trunk/src/polypcore/util.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/util.c?rev=793&root=polypaudio&r1=792&r2=793&view=diff
==============================================================================
--- trunk/src/polypcore/util.c (original)
+++ trunk/src/polypcore/util.c Mon Apr 24 17:07:09 2006
@@ -140,8 +140,12 @@
         if (errno != EEXIST)
             return -1;
 
+#ifdef HAVE_CHOWN
     chown(dir, getuid(), getgid());
+#endif
+#ifdef HAVE_CHMOD
     chmod(dir, 0700);
+#endif
     
 #ifdef HAVE_LSTAT
     if (lstat(dir, &st) < 0)




More information about the pulseaudio-commits mailing list