* [PATCH] net/rds_setsockopt.c: Always define SOL_RDS.
@ 2013-11-16 1:01 Vinson Lee
0 siblings, 0 replies; only message in thread
From: Vinson Lee @ 2013-11-16 1:01 UTC (permalink / raw)
To: trinity; +Cc: Vinson Lee
From: Vinson Lee <vlee@twitter.com>
This patch fixes this build error on CentOS 6.
CC net/rds_setsockopt.o
net/rds_setsockopt.c: In function ‘rds_setsockopt’:
net/rds_setsockopt.c:33: error: ‘SOL_RDS’ undeclared (first use in this function)
net/rds_setsockopt.c:33: error: (Each undeclared identifier is reported only once
net/rds_setsockopt.c:33: error: for each function it appears in.)
Signed-off-by: Vinson Lee <vlee@twitter.com>
---
net/rds_setsockopt.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/rds_setsockopt.c b/net/rds_setsockopt.c
index 5421c3b..d0dec57 100644
--- a/net/rds_setsockopt.c
+++ b/net/rds_setsockopt.c
@@ -2,14 +2,14 @@
#include "net.h"
#include "config.h"
+#define SOL_RDS 276
+
#ifdef USE_RDS
#include <linux/rds.h>
#include "compat.h"
#include "trinity.h" // ARRAY_SIZE
-#define SOL_RDS 276
-
#define NR_SOL_RDS_OPTS ARRAY_SIZE(rds_opts)
static const unsigned int rds_opts[] = {
RDS_CANCEL_SENT_TO, RDS_GET_MR, RDS_FREE_MR,
--
1.7.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-11-16 1:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-16 1:01 [PATCH] net/rds_setsockopt.c: Always define SOL_RDS Vinson Lee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).