hreinecke / sg3_utils

Deprecated git-svn mirror for sg3_utils

Home Page:http://sg.danny.cz/sg/sg3_utils.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OSF1 does not define CAM_DIR_BOTH

roburban opened this issue · comments

Hello,
I cloned the repository yesterday and tried to compile on Tru64 UNIX 5.1B (OSF/1) and discovered that two functions in lib/sg_pt_osf1.c use the constant CAM_DIR_BOTH, which is unknown to OSF/1. I presume this was adopted from the FreeBSD version, "sg_pt_freebsd.c", as only FreeBSD and OSF/1 seem to support CAM, and FreeBSD apparently knows this constant.
You probably don't care, considering that Tru64 is comatose, if not entirely dead, but I thought I'd let you know.
Rob Urban

Great to read that someone is still using Tru64. Nothing wrong with old, I also read that COBOL programmers are again in high demand. To fix this problem, I have conditionally defined CAM_DIR_BOTH to 0x0 if it is not present in sg_pt_osf1.c . Zero is the value it has in FreeBSD. Please contact me if that is incorrect for Tru64. The fix should appear in my svn rev 849.