Ticket #1: configure-getopt-qnx.patch
File configure-getopt-qnx.patch, 2.0 KB (added by , 15 years ago) |
---|
-
configure.in
107 107 AC_CHECK_TYPES([int64_t, uint64_t]) 108 108 109 109 dnl Checks for library functions. 110 AC_CHECK_FUNCS([getopt_long], , [ 111 AC_MSG_NOTICE([smartmontools does no longer support platforms without getopt_long().]) 112 AC_MSG_NOTICE([Please inform ${PACKAGE_BUGREPORT},]) 113 AC_MSG_NOTICE([including details about your build environment.]) 114 AC_MSG_ERROR([function getopt_long() not found]) 115 ]) 110 AC_CHECK_FUNCS([getopt_long], [need_getopt_long=no], [need_getopt_long=yes]) 111 AM_CONDITIONAL(NEED_GETOPT_LONG, [test "$need_getopt_long" = "yes"]) 116 112 117 113 AC_CHECK_FUNCS([getdomainname]) 118 114 AC_CHECK_FUNCS([gethostname]) -
os_qnxnto.cpp
624 624 cpt.cam_timeout=cpt.cam_timeout?cpt.cam_timeout:CAM_TIME_DEFAULT; 625 625 if(cpt.cam_sense_len) 626 626 { 627 SETIOV(&iov[1], cpt.cam_sense_ptr,cpt.cam_sense_len);627 SETIOV(&iov[1],(void *)cpt.cam_sense_ptr,cpt.cam_sense_len); 628 628 cpt.cam_sense_ptr=sizeof(cpt); 629 629 icnt++; 630 630 } -
Makefile.am
21 21 if ENABLE_ATTRIBUTELOG 22 22 AM_CPPFLAGS += -DSMARTMONTOOLS_ATTRIBUTELOG='"$(attributelog)"' 23 23 endif 24 if NEED_GETOPT_LONG 25 AM_CPPFLAGS += -I$(srcdir)/getopt -DHAVE_GETOPT_LONG -D__GNU_LIBRARY__ 26 endif 24 27 25 28 sbin_PROGRAMS = smartd \ 26 29 smartctl … … 161 164 162 165 endif 163 166 167 if NEED_GETOPT_LONG 168 169 smartctl_SOURCES += \ 170 getopt/getopt.c \ 171 getopt/getopt.h \ 172 getopt/getopt1.c 173 174 smartd_SOURCES += \ 175 getopt/getopt.c \ 176 getopt/getopt.h \ 177 getopt/getopt1.c 178 179 endif 180 164 181 if OS_SOLARIS 165 182 # This block is required because Solaris uses manual page section 1m 166 183 # for administrative command (linux/freebsd use section 8) and Solaris