Bug 14443

Summary: ports/misc/screen screen-3.9.5 fix
Product: Ports & Packages Reporter: Valentin Nechayev <netch>
Component: Individual Port(s)Assignee: Andrey A. Chernov <ache>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
file.diff
none
file.diff none

Description Valentin Nechayev 1999-10-20 23:40:00 UTC
1. configure script incorrectly detects type of getloadavg() arguments:

=== cut config.h ===
#define LOADAV 1

#define LOADAV_NUM 3
#define LOADAV_TYPE long
#define LOADAV_SCALE FSCALE
#define LOADAV_GETLOADAVG 1
/* #undef LOADAV_UNIX */
/* #undef LOADAV_AVENRUN */
=== end cut ===
=== cut MakeLog ===
cc -c -I. -I.    -O -pipe -g loadav.c
loadav.c: In function `GetLoadav':
loadav.c:101: warning: passing arg 1 of `getloadavg' from incompatible pointer type
=== end cut ===

2. teln.c source file causes annoying warnings:

In file included from teln.c:31:
/usr/include/arpa/inet.h:89: warning: parameter has incomplete type
/usr/include/arpa/inet.h:92: warning: parameter has incomplete type
/usr/include/arpa/inet.h:96: warning: parameter has incomplete type

Fix: In configure script, disable explicit bug in code -
"#if <...> || !(defined(__osf__) && defined(__alpha)) || <...>"
In teln.c, include <netinet/in.h>.

=== cut patch1 ===
=== cut patch2 ===
=== cut patch3 ===
How-To-Repeat: 
Try make it.
Comment 1 cpiazza freebsd_committer freebsd_triage 1999-10-21 06:42:18 UTC
Responsible Changed
From-To: freebsd-ports->ache

Over to maintainer 
Comment 2 Steve Price freebsd_committer freebsd_triage 1999-12-31 22:43:38 UTC
State Changed
From-To: open->closed

Committed, thanks!