lkml.org 
[lkml]   [1999]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectProblem with lp.h
From


The file include/linux/lp.h seems to have code in it, related to wait
queues, that should be available only to the kernel, but is not hidden
from user-space programs.

In my case, util-linux-2.9r failed to compile until I made the change
shown in the patch below (thanks rgooch).

Note, I am a beginner at this (my first post to this list!) - the
patch included below worked for me but is PROBABLY NOT CORRECT. I am
posting here so the appropriate maintainer can check it.

Patrick.

diff -urN linux-clean/include/linux/lp.h linux/include/linux/lp.h
--- linux-clean/include/linux/lp.h Sun May 16 14:04:59 1999
+++ linux/include/linux/lp.h Sun May 16 20:50:47 1999
@@ -123,10 +123,12 @@
unsigned int runchars;
struct lp_stats stats;
#endif
+#ifdef __KERNEL__
wait_queue_head_t wait_q;
unsigned int last_error;
volatile unsigned int irq_detected:1;
volatile unsigned int irq_missed:1;
+#endif
};

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:51    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog