[realtek] Compilation problem
Donald Becker
becker@scyld.com
Fri, 8 Sep 2000 13:12:01 -0400 (EDT)
On Fri, 8 Sep 2000, B. Atashband wrote:
> In an attempt to get the nic EN1207D-TX in my HP Pavilion 6740C to work, I
> am trying to compile the rtl8139.c on my SuSE6.4 installation.
...
> linux:/tmp:# gcc -DMODULE -Wall -Wstrict-prototypes -O6 -c rtl8139.c
>
> produces the following messages that I do not know what to do with
>
> In file included from rtl8139.c:123:
> kern_compat.h:164: parse error before `0'
What version of 'gcc' are you running?
Current Theory:
The current version of gcc (2.9.*) is somehow broken with line
continuations.
Removing the "\" and joining the lines is ugly, but should work around the
probelm. Please send a report if this works.
Problem code:
________________
#define netif_pause_tx_queue(dev) \
(test_and_set_bit(0, (void*)&(dev)->tbusy))
#define netif_unpause_tx_queue(dev) \
do { clear_bit(0, (void*)&(dev)->tbusy); } while (0)
#define netif_resume_tx_queue(dev) \
do { clear_bit(0, (void*)&(dev)->tbusy); mark_bh(NET_BH); } while (0)
________________
Donald Becker becker@scyld.com
Scyld Computing Corporation http://www.scyld.com
410 Severn Ave. Suite 210 Beowulf-II Cluster Distribution
Annapolis MD 21403