X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A6130385EC56
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1621058522;
	bh=OxX5+j6m2wiOIMy6qEMDHNRL/lNyzOJsdt+hlFH9Csc=;
	h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=ZIOMg+FRuUFgXTxzqNhpxPkW7rvPpwsAgnBR+d0y+KRPqglxTZ7JOBRYuLwwYaenm
	 uJL9TiNZUwuva8bBPKaaeDm/cTDd7OcMHve5lDQ9s/iqQ8L9eW1fiVNUq0W0DyoELl
	 GLcMCgfzmpX2jDigfCUCoq6N8OfuspyD1zGUBLJc=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1FBA5385781D
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=sPbfCshmww7HJdWYMyXZsICEPdtKwyFdbGq4jESWFjQ=;
 b=d1NRtmFuvjEAaVOTc/Ja2ldujVc8ZO4eAYuTobVmYQNxHcFTwY7eRTevG8qUAhj0NA
 +zB4cE1PnET8cr173q6EmtZqtlnmuXejU+OssbMpX873pLQyNHT+e7abpRKenlQHRwc9
 g6c2sLKemXP/fGQ0FHLEPRDr/GML8FjWt9BOYhXMdsdzoMCdKL0qNkgkjn6EQLrqD7MO
 lWA8J6kolo8R+iiKfDkDbMx1+seOFltBOQHfNYOwUTWmqcpAXh9Lmv6ujZxASGvI5AV7
 +63P8NYPOn5isEsS0T7maONOByN6zCftdYFH2DzKInqK//OKYWT7GBYyt/D++VBeBKCb
 arig==
X-Gm-Message-State: AOAM5307ngv6V1AW5FK5CwFwm3sao3z0IPVcqMSoKqEUlJN2cZyo7Efv
 8kHVnFM94ITcoSB5FT7Kr8AaxF6rTofULA==
X-Google-Smtp-Source: ABdhPJzdK4h9BzfznCLbGKBj7kqK5udnEclJOc1dPEJVsq0B2nRexlvKjV3YHgypqLRGpd3k2oFyHA==
X-Received: by 2002:a17:906:c0c6:: with SMTP id
 bn6mr50590539ejb.436.1621058519244; 
 Fri, 14 May 2021 23:01:59 -0700 (PDT)
Subject: Re: cygport i686/x86 library build undefined type in sys/stat.h
To: cygwin@cygwin.com
References: <08857c84-dbfe-8bf4-f7f8-40f64a3edda0@SystematicSw.ab.ca>
Message-ID: <3b055003-0f63-42d4-b196-fd59a0b682ae@gmail.com>
Date: Sat, 15 May 2021 08:01:59 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
 Thunderbird/78.10.1
MIME-Version: 1.0
In-Reply-To: <08857c84-dbfe-8bf4-f7f8-40f64a3edda0@SystematicSw.ab.ca>
Content-Language: it
X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00, BODY_8BITS,
 DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM,
 NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Marco Atzeri via Cygwin <cygwin@cygwin.com>
Reply-To: Marco Atzeri <marco.atzeri@gmail.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 14F625do014293

On 15.05.2021 06:16, Brian Inglis wrote:
> Trying to build latest libssh2 1.9.0 using cygport, works under x86_64,
> but under i686/x86 fails with:
> 
> In file included from */usr/i686-pc-cygwin/include/sys/stat.h*:22,
>                   from ...:
> /usr/include/cygwin/stat.h:27:3: error: unknown type name ‘timestruc_t’
>     27 |   timestruc_t   st_atim;
>        |   ^~~~~~~~~~~
> 
> The equivalent include path to */usr/i686-pc-cygwin/include/sys/stat.h*
> does not exist under 64 bit as /usr/x86_64-pc-cygwin/include,
> and cygcheck -f does not come up with a hit.
> 

It is defined under:

/usr/include/machine/types.h

#ifndef __timestruc_t_defined
#define __timestruc_t_defined
typedef struct timespec timestruc_t;
#endif /*__timestruc_t_defined*/


check that the <threads.h> is included

$ cat prova.c
#include <threads.h>
int main(){
timestruc_t abstime;
}

$ gcc -c  prova.c
$ ls -l prova.o
-rw-r--r-- 1 Marco Kein 656 May 15 07:59 prova.o


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

