Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196762 - gpm-1.20.1-r6 does not compile
Summary: gpm-1.20.1-r6 does not compile
Status: RESOLVED DUPLICATE of bug 195977
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-23 02:34 UTC by Robert Lewis
Modified: 2007-10-23 02:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Lewis 2007-10-23 02:34:30 UTC
gpm-1.20.1-r6 does not compile

special.c and prog/gpm-root.c uses OPEN_MAX reference in linux/limits.h which is no longer supplied. Must use sysconf for limit. Patch below

Reproducible: Always

Steps to Reproduce:
emerge gpm under ~x86
Actual Results:  
Does not compile

Expected Results:  
Should compile

Here are diffs that should fix the problem

special.c
27,28c27
< 
< #include <linux/limits.h> /* for OPEN_MAX */
---
> #include <unistd.h>
40a40
> #define OPEN_MAX (sysconf(_SC_OPEN_MAX))


gpm-root.c
120c120
< #include <linux/limits.h>   /* OPEN_MAX */
---
> #include <unistd.h>	    /* _SC_OPEN_MAX */
135a136,137
> #define OPEN_MAX (sysconf(_SC_OPEN_MAX))
>
Comment 1 Robert Lewis 2007-10-23 02:49:30 UTC

*** This bug has been marked as a duplicate of bug 195977 ***