Skip to content

Commit

Permalink
Changes needed for centos9 build.
Browse files Browse the repository at this point in the history
  • Loading branch information
mchalla authored and snaiksat committed May 20, 2023
1 parent 533b064 commit 90c4374
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion agent-ovs/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OVS_ADDL_CFLAGS = \
-D__STDC_CONSTANT_MACROS

AM_CPPFLAGS = $(BOOST_CPPFLAGS) \
-Wall -Werror \
-Wall -Wno-maybe-uninitialized -Werror \
-I$(top_srcdir)/lib/include \
-DLOCALSTATEDIR='"$(localstatedir)"'
if ENABLE_TSAN
Expand Down
2 changes: 1 addition & 1 deletion agent-ovs/lib/include/opflexagent/LearningBridgeManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class LearningBridgeManager : private boost::noncopyable {
* true if lhs.first < rhs.first
*/
constexpr bool operator()(const vlan_range_t& lhs,
const vlan_range_t& rhs) {
const vlan_range_t& rhs) const {
return lhs.first < rhs.first;
}
};
Expand Down
2 changes: 1 addition & 1 deletion agent-ovs/ovs/PacketInHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

#include <netinet/ip.h>
#include <linux/icmp.h>
#include <netinet/ip_icmp.h>
#include <netinet/ip6.h>
#include <netinet/icmp6.h>

Expand Down
2 changes: 1 addition & 1 deletion agent-ovs/ovs/test/PacketInHandler_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

#include <netinet/ip.h>
#include <linux/icmp.h>
#include <netinet/ip_icmp.h>
#include <netinet/ip6.h>
#include <netinet/icmp6.h>
#include <openvswitch/ofp-msgs.h>
Expand Down
2 changes: 1 addition & 1 deletion libopflex/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

ACLOCAL_AMFLAGS = -I m4

AM_CPPFLAGS = -Wall -Werror -std=c++11
AM_CPPFLAGS = -Wall -Wno-sign-compare --Werror -std=c++11

if ENABLE_TSAN
AM_CPPFLAGS += -fsanitize=thread
Expand Down
2 changes: 1 addition & 1 deletion libopflex/comms/transport/ZeroCopyOpenSSL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,10 @@ int ZeroCopyOpenSSL::initOpenSSL(bool forMultipleThreads) {
}
SSL_library_init();
SSL_load_error_strings();
ERR_load_SSL_strings();
#else
OPENSSL_init_ssl(0, NULL);
#endif
ERR_load_SSL_strings();
#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
OpenSSL_add_all_algorithms();
if (forMultipleThreads) {
Expand Down

0 comments on commit 90c4374

Please sign in to comment.