FreeBSD Bugzilla – Attachment 44089 Details for
Bug 68349
unbreak emulators/qemu for -stable, add ONLY_FOR_ARCHS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.56 KB, created by
Juergen Lock
on 2004-06-26 01:10:19 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Juergen Lock
Created:
2004-06-26 01:10:19 UTC
Size:
1.56 KB
patch
obsolete
>Index: Makefile >=================================================================== >RCS file: /home/ncvs/ports/emulators/qemu/Makefile,v >retrieving revision 1.10 >diff -u -r1.10 Makefile >--- Makefile 25 Jun 2004 07:37:31 -0000 1.10 >+++ Makefile 25 Jun 2004 18:07:50 -0000 >@@ -27,6 +27,7 @@ > PATCH_STRIP= -p1 > CONFIGURE_ARGS+= --prefix=${PREFIX} --cc=${CC}\ -I${PREFIX}/include > MAN1= qemu.1 qemu-mkcow.1 >+ONLY_FOR_ARCHS= i386 amd64 powerpc > > post-install: > @${CAT} ${PKGMESSAGE} >Index: files/patch-bg >=================================================================== >RCS file: /home/ncvs/ports/emulators/qemu/files/patch-bg,v >retrieving revision 1.1 >diff -u -r1.1 patch-bg >--- files/patch-bg 25 Jun 2004 07:37:31 -0000 1.1 >+++ files/patch-bg 25 Jun 2004 16:35:28 -0000 >@@ -8,27 +8,30 @@ > #include <stdlib.h> > #include <stdio.h> > #include <stdarg.h> >-@@ -36,6 +38,12 @@ >+@@ -36,6 +38,13 @@ > #include <sys/stat.h> > #include <netinet/in.h> > > +#ifdef _BSD > +#include <sys/types.h> > +#include <sys/ioctl.h> >++#include <sys/queue.h> > +#include <sys/disk.h> > +#endif > + > #include "cow.h" > > #include "bswap.h" >-@@ -56,6 +64,13 @@ int cow_create(int cow_fd, const char *i >+@@ -56,6 +64,15 @@ int cow_create(int cow_fd, const char *i > perror(image_filename); > exit(1); > } > +#ifdef _BSD > + struct stat sb; > + if (!fstat(fd,&sb) && (S_IFCHR & sb.st_mode)) { >++#ifdef DIOCGMEDIASIZE > + if (ioctl(fd, DIOCGMEDIASIZE, (off_t *)&image_sectors)) >++#endif > + image_sectors = lseek(fd, 0LL, SEEK_END); > + } else > +#endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 68349
: 44089