[Bug 293394] devel/indi: fix build with libc++ 21

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 23 Feb 2026 21:24:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293394

            Bug ID: 293394
           Summary: devel/indi: fix build with libc++ 21
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: acm@FreeBSD.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(acm@FreeBSD.org)
          Assignee: acm@FreeBSD.org

With libc++ 21 devel/indi fails to build, with errors similar to:

   
/wrkdirs/usr/ports/devel/indi/work/indi-2.1.7/drivers/auxiliary/gemini_flatpanel_adapters.cpp:242:14:
error: use of undeclared identifier 'atoi'
      242 |     int id = atoi(id_str);
          |              ^~~~
   
/wrkdirs/usr/ports/devel/indi/work/indi-2.1.7/drivers/auxiliary/gemini_flatpanel_adapters.cpp:341:14:
error: use of undeclared identifier 'atoi'
      341 |     *value = atoi(value_str);
          |              ^~~~
   
/wrkdirs/usr/ports/devel/indi/work/indi-2.1.7/drivers/auxiliary/gemini_flatpanel_adapters.cpp:658:14:
error: use of undeclared identifier 'atoi'
      658 |     int id = atoi(id_str);
          |              ^~~~
   
/wrkdirs/usr/ports/devel/indi/work/indi-2.1.7/drivers/auxiliary/gemini_flatpanel_adapters.cpp:793:14:
error: use of undeclared identifier 'atoi'
      793 |     *value = atoi(value_str);
          |              ^~~~
   
/wrkdirs/usr/ports/devel/indi/work/indi-2.1.7/drivers/auxiliary/gemini_flatpanel_adapters.cpp:1154:14:
error: use of undeclared identifier 'atoi'
     1154 |     *value = atoi(value_str);
          |              ^~~~

This is because `atoi` is declared in `<cstdlib>`, and before libc++ 21
that header got transitively included via other standard headers, but
that is no longer the case. Include `<cstdlib>` explicitly to fix the
errors.

-- 
You are receiving this mail because:
You are the assignee for the bug.