fix gpfdist build error on USE_SSL off
@@ -4091,19 +4091,6 @@ static int gpfdist_socket_receive(const request_t *r, void *buf, const size_t bu
return ( recv(r->sock, buf, buflen, 0) );
}
-
-#ifdef USE_SSL
-/*
- * gpfdist_SSL_receive
- *
- * read from an SSL socket
- */
-static int gpfdist_SSL_receive(const request_t *r, void *buf, const size_t buflen)
-{
- return ( BIO_read(r->io, buf, buflen) );
- /* todo: add error checks here */
-}
-
/*
* request_shutdown_sock
*
@@ -4122,6 +4109,18 @@ static void request_shutdown_sock(const request_t* r)
}
}
+#ifdef USE_SSL
+/*
+ * gpfdist_SSL_receive
+ *
+ * read from an SSL socket
+ */
+static int gpfdist_SSL_receive(const request_t *r, void *buf, const size_t buflen)
+{
+ return ( BIO_read(r->io, buf, buflen) );
+ /* todo: add error checks here */
+}
+
/*
* free_SSL_resources
*
