Bug 209101

Summary: textproc/htdig: Fix build error due to nonexistent ETIME
Product: Ports & Packages Reporter: Dimitry Andric <dim>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed FIXED    
Severity: Affects Some People    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 208158    
Attachments:
Description Flags
Fix build error due to nonexistent ETIME none

Description Dimitry Andric freebsd_committer 2016-04-27 17:15:09 UTC
Created attachment 169762 [details]
Fix build error due to nonexistent ETIME

During the exp-run for bug 208158, I noticed text/htdig didn't build [1]:

mut_pthread.c:204:27: error: use of undeclared identifier 'ETIME'
                        if (ret != 0 && ret != ETIME && ret != ETIMEDOUT)
                                               ^

This is because the ETIME error code does not exist on FreeBSD, it is a Linuxism.  Fix the build by putting this part between #ifdefs.

[1] http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-03-22_18h30m05s/logs/errors/htdig-3.2.0.b6_6.log
Comment 1 commit-hook freebsd_committer 2016-05-10 18:54:49 UTC
A commit references this bug:

Author: amdmi3
Date: Tue May 10 18:54:21 UTC 2016
New revision: 414954
URL: https://svnweb.freebsd.org/changeset/ports/414954

Log:
  - Fix build with libc++ 3.8.0 by ignoring ETIME errno which does not exist on FreeBSD

  PR:		209101
  Submitted by:	dim@FreeBSD.org

Changes:
  head/textproc/htdig/files/patch-db_mut__pthread.c