🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.lib.bug
Article #60

(none)

#60
From: Axel Schreiner
Date: Sat, 11 Apr 1992 09:33
70 lines
2839 bytes
For NeXT 2.1 the following patches make libg++-2.0/libg++/g++-include/sys
conform to the system include files. Once these patches are applied,
make test_h in tests will work and src/timer.cc can be compiled.

*** socket.h-orig	Fri Apr 10 16:56:49 1992
--- socket.h	Fri Apr 10 17:00:45 1992
***************
*** 20,26 ****
--- 20,30 ----
  int       select(int, void*, void*, void*, struct timeval*);
  
  int       accept(int, struct sockaddr*, int*);
+ #ifdef	NeXT
+ int       bind(int, struct sockaddr *, int);
+ #else
  int       bind(int, const void*, int);
+ #endif
  int       connect(int, struct sockaddr*, int);
  int       getsockname(int, struct sockaddr*, int*);
  int       getpeername(int, struct sockaddr*, int*);  // 16 Oct 90 Talisman
***************
*** 28,41 ****
--- 32,56 ----
  int       listen(int, int);
  int       rcmd(char**, int, const char*, const char*, const char*, int*);
  int       recv(int, void*, int, int);
+ #ifdef	NeXT
+ int       recvfrom(int, void*, int, int, struct sockaddr *, int *);
+ #else
  int       recvfrom(int, void*, int, int, void*, int *);
+ #endif
  int       recvmsg(int, struct msghdr*, int);
  int       rexec(char**, int, const char*, const char*, const char*, int*);
  int       rresvport(int*);
+ #ifdef	NeXT
+ int       send(int, void*, int, int);
+ int       sendto(int, void*, int, int, struct sockaddr *, int);
+ int       sendmsg(int, struct msghdr*, int);
+ int       setsockopt(int, int, int, void*, int);
+ #else
  int       send(int, const void*, int, int);
  int       sendto(int, const void*, int, int, const char*, int);
  int       sendmsg(int, const struct msghdr*, int);
  int       setsockopt(int, int, int, const char*, int);
+ #endif
  int       shutdown(int, int);
  int       socket(int, int, int);
  int       socketpair(int, int, int, int sv[2]);
*** wait.h-orig	Fri Apr 10 16:55:15 1992
--- wait.h	Fri Apr 10 16:56:05 1992
***************
*** 15,23 ****
--- 15,31 ----
  #define __libgxx_sys_wait_h 1
  
  struct rusage;
+ #ifdef NeXT
+ extern int wait(union wait *);
+ #else
  extern int wait(int*);
+ #endif
  extern int waitpid(int, int*, int);
+ #ifdef	NeXT
+ extern int wait3(union wait *, int options, struct rusage*);
+ #else
  extern int wait3(int*, int options, struct rusage*);
+ #endif
  extern int wait4(int, int*, int, struct rusage*);
  #endif
  }
Technical Details
Message-ID: <9204110533.AA04357@dosuni.informatik.Uni-Osnabrueck.DE>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!thor.informatik.uni-osnabrueck.de!axel

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!thor.informatik.uni-osnabrueck.de!axel
From: axel@thor.informatik.uni-osnabrueck.de (Axel Schreiner)
Subject: (none)
Message-ID: <9204110533.AA04357@dosuni.informatik.Uni-Osnabrueck.DE>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sat, 11 Apr 1992 09:33:25 GMT
Approved: bug-lib-g++@prep.ai.mit.edu
Lines: 72