Browse Source

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

JINMEI Tatuya 13 years ago
parent
commit
2d357b48ad
1 changed files with 3 additions and 1 deletions
  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
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // PERFORMANCE OF THIS SOFTWARE.
 // 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 <cstdlib>
 
 
 #include <sys/types.h>
 #include <sys/types.h>