]> 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:25:30 +0000 (08:25 +0200)
src/dvr/dvr_config.c

index 97523f665055deed8c43c3a57b8179a1abab6950..5c290791cd80642a7ce8eb0924227c055b794cf8 100644 (file)
@@ -1313,6 +1313,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 */