facebook / fboss

Facebook Open Switching System Software for controlling network switches.
Other
866 stars 301 forks source link

Fix build error for gcc 4.8.2 (Ubuntu): missing definition of std::mutex #2

Closed curtmcd closed 9 years ago

curtmcd commented 9 years ago

This change is intended to fix the compile error below.

In file included from /home/csm/fboss/fboss/agent/hw/bcm/BcmSwitchEventManager.cpp:10:0:
/home/csm/fboss/fboss/agent/hw/bcm/BcmSwitchEventManager.h:47:3: error: 'mutex' in namespace 'std' does not name a type
   std::mutex lock_;
   ^

$ gcc --version gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ uname -a Linux irp100-v01g15 3.13.0-48-generic #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

oridb commented 9 years ago

This seems resolved after resyncing the open source and internal repositories.