I could not compile svn ver.3262 on Mac OS X 10.5.8 and/or later, PPC or Intel both.

I tried compile with
$ ./autogen.sh
$ ./configure
$ make

Some line of compile error result here.

mv -f .deps/os_darwin.Tpo .deps/os_darwin.Po
g++ -DHAVE_CONFIG_H -I.  -DBUILD_INFO='"(local build)"' -DSMARTMONTOOLS_SYSCONFDIR='"/usr/local/etc"' -DSMARTMONTOOLS_DRIVEDBDIR='"/usr/local/share/smartmontools"'       -g -O2 -Wall -W -MT dev_legacy.o -MD -MP -MF .deps/dev_legacy.Tpo -c -o dev_legacy.o dev_legacy.cpp
dev_legacy.cpp: In member function ‘virtual bool os::legacy_smart_device::open()’:
dev_legacy.cpp:97: error: ‘errno’ was not declared in this scope
dev_legacy.cpp:97: error: ‘ENOENT’ was not declared in this scope
dev_legacy.cpp:97: error: ‘ENOTDIR’ was not declared in this scope
dev_legacy.cpp:97: error: ‘ENODEV’ was not declared in this scope
dev_legacy.cpp: In member function ‘virtual bool os::legacy_smart_device::close()’:
dev_legacy.cpp:107: error: ‘errno’ was not declared in this scope
dev_legacy.cpp: In member function ‘virtual smart_device* os::legacy_scsi_device::autodetect_open()’:
dev_legacy.cpp:197: error: ‘EIO’ was not declared in this scope
dev_legacy.cpp: In member function ‘virtual bool os::legacy_smart_interface::scan_smart_devices(smart_device_list&, const char*, const char*)’:
dev_legacy.cpp:286: error: ‘EINVAL’ was not declared in this scope
dev_legacy.cpp:295: error: ‘ENOMEM’ was not declared in this scope
dev_legacy.cpp:305: error: ‘ENOMEM’ was not declared in this scope
make[1]: *** [dev_legacy.o] Error 1
make: *** [all] Error 2

Please resolve this error.

Regards.