Bug 209101 - textproc/htdig: Fix build error due to nonexistent ETIME
Summary: textproc/htdig: Fix build error due to nonexistent ETIME
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks: 208158
  Show dependency treegraph
 
Reported: 2016-04-27 17:15 UTC by Dimitry Andric
Modified: 2016-05-10 18:54 UTC (History)
0 users

See Also:


Attachments
Fix build error due to nonexistent ETIME (1.00 KB, patch)
2016-04-27 17:15 UTC, Dimitry Andric
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitry Andric freebsd_committer freebsd_triage 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 freebsd_triage 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