小程序容器助力企业在金融与物联网领域实现高效合规运营,带来的新机遇与挑战如何管理?
609
2022-09-23
CMAKE2.8.10在HP-UNIX上安装异常解决
需要修改文件才能编译通过
# cd cmake-2.8.10.2/ # vi Utilities/cmlibarchive/libarchive/archive_write_disk_posix.c Locate routine set_time_tru64. Change it so that it looks like: #ifdef F_SETTIMES /* Tru64 */ static int set_time_tru64(int fd, int mode, const char *name, time_t atime, long atime_nsec, time_t mtime, long mtime_nsec, time_t ctime, long ctime_nsec) { struct attr_timbuf tstamp; #if defined (__hpux) && defined (__ia64) tstamp.atime.tv_sec = atime; tstamp.atime.tv_nsec = atime_nsec; tstamp.mtime.tv_sec = mtime; tstamp.mtime.tv_nsec = mtime_nsec; tstamp.ctime.tv_sec = ctime; tstamp.ctime.tv_nsec = ctime_nsec; #else struct timeval times[3]; times[0].tv_sec = atime; times[0].tv_usec = atime_nsec / 1000; times[1].tv_sec = mtime; times[1].tv_usec = mtime_nsec / 1000; times[2].tv_sec = ctime; times[2].tv_usec = ctime_nsec / 1000; tstamp.atime = times[0]; tstamp.mtime = times[1]; tstamp.ctime = times[2]; #endif return (fcntl(fd,F_SETTIMES,&tstamp)); } #endif /* Tru64 */
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~