Skip to contentSkip to conversation

linux headers

DISCUSSION Robert Millan 2 participants 3 messages Jun 4, 2007

lore
Share & tools
lore
#0 lore raw

How is it that util/biosdisk.c makes effort to avoid including Linux headers and defines Linux ioctl macros on its own?

This adds an extra maintainance burden, so I guess there must be a reason to do it, but can't think of one..

Signature · 4 lines
Robert Millan

My spam trap is [email protected].  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.
#1 lore raw
Quoted 6 lines · Robert Millan

How is it that util/biosdisk.c makes effort to avoid including Linux headers and defines Linux ioctl macros on its own?

This adds an extra maintainance burden, so I guess there must be a reason to do it, but can't think of one..

Ah, and also I'm not really sure that ioctl definitions are always architecture independant.

Signature · 4 lines
Robert Millan

My spam trap is [email protected].  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.
#2 lore raw
In reply to Robert Millan

At Mon, 4 Jun 2007 18:59:30 +0200,

Quoted 7 lines · Robert Millan

How is it that util/biosdisk.c makes effort to avoid including Linux headers and defines Linux ioctl macros on its own?

This adds an extra maintainance burden, so I guess there must be a reason to do it, but can't think of one..

It only defines it when it isn't defined yet. It seems to be taken from GRUB Legacy's lib/device.c and probably comes from a time those things weren't always defined. The checks for glibc also don't seem that useful to me. It needs a cleanup.

Jeroen Dekkers