Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 196762

Summary: gpm-1.20.1-r6 does not compile
Product: Gentoo Linux Reporter: Robert Lewis <rrl125>
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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 ***