summaryrefslogtreecommitdiffstats
path: root/audio/alsa-utils/files/patch-alsaloop__alsaloop.c
blob: 22b0102aecb5d7b498adfb3233949d36b9018cce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- alsaloop/alsaloop.c~
+++ alsaloop/alsaloop.c
@@ -760,7 +761,11 @@ static void thread_job1(void *_data)
 			snd_output_printf(output, "pool took %lius\n", timediff(tv2, tv1));
 		}
 		if (err < 0) {
+#ifdef ERESTART
 			if (err == -EINTR || err == -ERESTART)
+#else
+			if (err == -EINTR)
+#endif
 				continue;
 			logit(LOG_CRIT, "Poll failed: %s\n", strerror(-err));
 			my_exit(thread, EXIT_FAILURE);
OpenPOWER on IntegriCloud