bug-xorriso
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4


From: SASANO Takayoshi
Subject: Re: [Bug-xorriso] building libisofs-1.4.4, libburn-1.4.4, libisoburn-1.4.4 on OpenBSD
Date: Thu, 21 Jul 2016 22:30:35 +0900
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/24.5 (x86_64-unknown-openbsd) MULE/6.0 (HANACHIRUSATO)

Hi, I downloaded xorriso-1.4.5.tar.gz and started testing.
To build, libburn/sg-netbsd.c needs to be fixed. Here is the diff.

--- sg-netbsd.c.orig    Thu Jul 21 20:18:09 2016
+++ sg-netbsd.c Thu Jul 21 22:08:32 2016
@@ -314,7 +314,7 @@ static int guess_size_by_seek_set(int fd, off_t *bytes
 */
 int sg_id_string(char msg[1024], int flag)
 {
-#ifdef __OpenBSD___
+#ifdef __OpenBSD__
        sprintf(msg, "internal OpenBSD SCIOCCOMMAND adapter sg-netbsd");
 #else
        sprintf(msg, "internal NetBSD SCIOCCOMMAND adapter sg-netbsd");
@@ -694,19 +694,19 @@ int sg_obtain_scsi_adr(char *path, int *bus_no, int *h
        if (addr.type != TYPE_SCSI)
                {ret = 0; goto ex;}
 
-#ifdef __OpenBSD___
+#ifdef __OpenBSD__
 
        *bus_no = *host_no = addr.scbus;
        *target_no = addr.target;
        *lun_no = addr.lun;
 
-#else /* __OpenBSD___ */
+#else /* __OpenBSD__ */
 
        *bus_no = *host_no = addr.addr.scsi.scbus;
        *target_no = addr.addr.scsi.target;
        *lun_no = addr.addr.scsi.lun;
 
-#endif /* ! __OpenBSD___ */
+#endif /* ! __OpenBSD__ */
 
        ret = 1;
 ex:;

-- 
SASANO Takayoshi <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]