Messages in this thread Patch in this message |  | | Date | Sun, 16 May 1999 21:33:17 +1000 | | Subject | Problem with lp.h | | From | Patrick Jordan <> |
| |
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/
|  |