All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] patch for hal
@ 2010-08-15 17:01 Massimiliano Marretta
  0 siblings, 0 replies; only message in thread
From: Massimiliano Marretta @ 2010-08-15 17:01 UTC (permalink / raw)
  To: buildroot

  To resolve the hal build problem:

/bits/fcntl2.h: In function 'lock_hal_mtab':
/srv/source/i686-generic-linux-gnu/lib/gcc/i686-generic-linux-gnu/4.4.3/../../../../i686-generic-linux-gnu/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments

I create this pacth:


diff -crBN hal-0.5.8_old/tools/hal-storage-shared.c 
hal-0.5.8/tools/hal-storage-shared.c
*** hal-0.5.8_old/tools/hal-storage-shared.c    Mon Sep 11 23:56:40 2006
--- hal-0.5.8/tools/hal-storage-shared.c    Sun Aug 15 16:26:42 2010
***************
*** 560,566 ****

       printf ("%d: XYA attempting to get lock on 
/media/.hal-mtab-lock\n", getpid ());

!     lock_mtab_fd = open ("/media/.hal-mtab-lock", O_CREAT | O_RDWR);

       if (lock_mtab_fd < 0)
           return FALSE;
--- 560,566 ----

       printf ("%d: XYA attempting to get lock on 
/media/.hal-mtab-lock\n", getpid ());

!     lock_mtab_fd = open ("/media/.hal-mtab-lock", O_CREAT | O_RDWR, 600);

       if (lock_mtab_fd < 0)
           return FALSE;
<cid:part1.08070505.01090808@marretta.com>

-- 

Massimiliano Marretta
Via Zuccola 11
41015 Nonantola (Mo) - Italy
tel: +39 347 5340305
skype: mmarretta
/mailto:max at marretta.com/
/web:www.marretta.com/ <http://www.marretta.com>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-15 17:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-15 17:01 [Buildroot] patch for hal Massimiliano Marretta

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.