git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Porting to a new platform

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 10, 2012, 16:20 UTC
Message-ID
<7v1ujelnvm.fsf_-_@alter.siamese.dyndns.org>
In-Reply-To
<003901cd7708$fa482c10$eed88430$@schmitz-digital.de>
"Joachim Schmitz" <jojo@schmitz-digital.de> writes:
> - HP NonStop is lacking poll(),...
> - HP NonStop is lacking getrlimit(), fsync(), setitimer()...

I would check compat/win32 and friends and see what other platforms that lack this and that do, if I were you.

> so telling configure to search for c99  should help here.

In general, the top-level Makefile is designed to be usable without ever worrying about "configure" mess. Just define CC for the platform section there, and optionally add a support to flip the same in configure.ac. This applies equally to other conditional compilation options you may have to add to support your platform.

Previous: Joachim SchmitzNext: Joachim Schmitz
Message 7 of 8 in “add test for 'git rebase --keep-empty'”
  1. add test for 'git rebase --keep-empty'Martin von Zweigbergk, Aug 8, 2012
  2. Neil HormanAug 8, 2012
  3. add tests for 'git rebase --keep-empty'Martin von Zweigbergk, Aug 9, 2012
  4. Junio C HamanoAug 9, 2012
  5. Neil HormanAug 10, 2012
  6. Joachim SchmitzAug 10, 2012
  7. Porting to a new platformJunio C Hamano, Aug 10, 2012
  8. Joachim SchmitzAug 10, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.