[PATCH] Portability fix for Solaris 10/x86

* getdomainname unavailable there.
 * needs -lsocket for linkage.
 * needs __EXTENSIONS__ at the beginning of convert-objects.c

[JC: I've done this slightly differently from what Patrick originally
sent to the list and dropped the bit that deals with installations
that has curl header and library at non-default location.  I am
resisting the slipperly slope called autoconf.]

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Patrick Mauritz
2005-09-06 01:24:03 +02:00
committed by Junio C Hamano
parent 215a7ad1ef
commit f0ebff0dfe
3 changed files with 19 additions and 3 deletions

View File

@ -1,4 +1,5 @@
#define _XOPEN_SOURCE /* glibc2 needs this */
#define __EXTENSIONS__ /* solaris needs this */
#include <time.h>
#include <ctype.h>
#include "cache.h"