Parcourir la source

[master] workaround for sunstudio build failure (it complained about memcpy
if we (correctly) included cstring)

JINMEI Tatuya il y a 13 ans
Parent
commit
2d357b48ad
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/lib/util/io/fd_share.cc

+ 3 - 1
src/lib/util/io/fd_share.cc

@@ -12,7 +12,9 @@
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // PERFORMANCE OF THIS SOFTWARE.
 
-#include <cstring>
+// XXX: SunStudio compiler would complain about memcpy if we used cstring,
+// so we intentionally include the .h version here.
+#include <string.h>
 #include <cstdlib>
 
 #include <sys/types.h>