delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/14/14:44:14

X-Spam-Check-By: sourceware.org
Message-ID: <981e6de60702141143t56330f9er6df89b8d358cded3@mail.gmail.com>
Date: Wed, 14 Feb 2007 20:43:49 +0100
From: "Simon Sasburg" <simon DOT sasburg AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: IPX headers
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Ok so i'm trying to port a C winsock ipx application of mine to cygwin.

problem is i can't find the needed IPX constants (or headers that contain them).

with winsock this works:
    SOCKET ipx_sock = socket(AF_IPX, SOCK_DGRAM, NSPROTO_IPX);
when including
    #include <winsock2.h>
    #include <Wsipx.h>

now in cygwin it can't find the AF_IPX and NSPROTO_IPX constants (i
typedeffed SOCKET to int already)
this are the headers I included: (i dont include the winsock ones when
compiling with cygwin)
    #include <unistd.h>
    #include <netinet/in.h>
    #include <arpa/inet.h>
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <stdlib.h>

from looking around google i found that these constants might be found
in these headers on a 'real' unix system :
    #include <net/ipx.h>
    #include <linux/ipx.h>
    #include <netipx/ipx.h>

but when compiling with cygwin it can't find any of these headers.

Where might the needed headers/constants be found on a cygwin system?
do i need to install any special packages for this?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019