]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Compatibility fix for undefined _SC_IOV_MAX
authorm4tt075 <mgawalter@web.de>
Tue, 20 Jun 2017 18:41:06 +0000 (20:41 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 28 Jun 2017 06:15:38 +0000 (08:15 +0200)
src/dvr/dvr_config.c

index b548e7d0be376bcbf593bcd9b24e496e09ee02a5..dc98c2b53434fe90625048293cc73b58e409bd4e 100644 (file)
@@ -1324,6 +1324,12 @@ dvr_config_init(void)
   dvr_config_t *cfg;
 
   dvr_iov_max = sysconf(_SC_IOV_MAX);
+  if( dvr_iov_max == -1 )
+#ifdef IOV_MAX
+    dvr_iov_max = IOV_MAX;
+#else
+    dvr_iov_max = 16;
+#endif
 
   /* Default settings */