Faidon Liambotis has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/404456 )

Change subject: Define IOV_MAX properly, using _GNU_SOURCE
......................................................................

Define IOV_MAX properly, using _GNU_SOURCE

Undo the hack previously done by defining __need_IOV_MAX, that is
apparently not working anymore in current distributions. Instead,
include limits.h, and define _GNU_SOURCE at the beginning as those
definitions are only included via some XOPEN_SOURCE variant.

Change-Id: I550c612a71c6c615c54c3b6c9c8bae91db1ad99b
---
M output.c
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/analytics/kafkatee 
refs/changes/56/404456/1

diff --git a/output.c b/output.c
index 32e3543..53798cc 100644
--- a/output.c
+++ b/output.c
@@ -26,7 +26,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#define __need_IOV_MAX
+#define _GNU_SOURCE
 
 #include "kafkatee.h"
 #include "queue.h"
@@ -43,6 +43,7 @@
 #include <assert.h>
 #include <sys/socket.h>
 #include <signal.h>
+#include <limits.h>
 
 
 static LIST_HEAD(, output_s) outputs; /* Sorted in sample-rate order */

-- 
To view, visit https://gerrit.wikimedia.org/r/404456
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I550c612a71c6c615c54c3b6c9c8bae91db1ad99b
Gerrit-PatchSet: 1
Gerrit-Project: analytics/kafkatee
Gerrit-Branch: master
Gerrit-Owner: Faidon Liambotis <fai...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to