From f9d67b4190c412b3fc2ee51f64056d5c2a74863b Mon Sep 17 00:00:00 2001 From: Andrew Nelless Date: Sun, 28 Feb 2016 01:28:02 +0000 Subject: [PATCH] Fix missing definition UINT16_MAX under GCC 4.7. std::numeric_limits is used elsewhere, so I went with that. --- pdns/pdns_recursor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index cfc150cf86..4f6f021aba 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -1028,7 +1028,7 @@ void handleRunningTCPQuestion(int fd, FDMultiplexer::funcparam_t& var) } else if(conn->state==TCPConnection::GETQUESTION) { ssize_t bytes=recv(conn->getFD(), conn->data + conn->bytesread, conn->qlen - conn->bytesread, 0); - if(!bytes || bytes < 0 || bytes > UINT16_MAX) { + if(!bytes || bytes < 0 || bytes > std::numeric_limits::max()) { L<d_remote.toString() <<" disconnected while reading question body"<removeReadFD(fd); return; -- 2.47.2