[pulseaudio-commits] r1117 - /trunk/src/daemon/daemon-conf.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Thu Jul 20 06:07:02 PDT 2006
Author: ossman
Date: Thu Jul 20 15:07:01 2006
New Revision: 1117
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1117&root=pulseaudio&view=rev
Log:
Make sure parse_rlimit is only used when rlimits are supported.
Modified:
trunk/src/daemon/daemon-conf.c
Modified: trunk/src/daemon/daemon-conf.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/daemon/daemon-conf.c?rev=1117&root=pulseaudio&r1=1116&r2=1117&view=diff
==============================================================================
--- trunk/src/daemon/daemon-conf.c (original)
+++ trunk/src/daemon/daemon-conf.c Thu Jul 20 15:07:01 2006
@@ -199,7 +199,8 @@
}
static int parse_rlimit(const char *filename, unsigned line, const char *lvalue, const char *rvalue, void *data, PA_GCC_UNUSED void *userdata) {
- pa_rlimit *r = data;
+#ifdef HAVE_SYS_RESOURCE_H
+ struct pa_rlimit *r = data;
assert(filename);
assert(lvalue);
assert(rvalue);
@@ -218,6 +219,9 @@
r->is_set = k >= 0;
r->value = k >= 0 ? (rlim_t) k : 0;
}
+#else
+ pa_log_warning(__FILE__": [%s:%u] rlimit not supported on this platform.", filename, line);
+#endif
return 0;
}
More information about the pulseaudio-commits
mailing list