Skip to content

Compilation error with nim 2.2.2 #4

Description

@Martinix75

With the new version of Nim 2.2.2 from an error (not with 2.2.0), but it is easy to solve!
in teh file
...//home/andrea/Scrivania/picostdlib/patches/posix_other.nim

comment te lines 607 --> 612

when not defined(lwip):
  type
    TPollfd* {.importc: "struct pollfd", pure, final,
              header: "<poll.h>".} = object ## struct pollfd
      fd*: cint        ## The following descriptor being polled.
      events*: cshort  ## The input event flags (see below).
      revents*: cshort ## The output event flags (see below).

  #[when defined(zephyr):  <--- comment from here ..
    type
      Tnfds* = distinct cint
  else:
    type
      Tnfds* {.importc: "nfds_t", header: "<poll.h>".} = cint  <-- up to here]#

var
  errno* {.importc, header: "<errno.h>".}: cint ## error variable
  h_errno* {.importc, header: "<netdb.h>".}: cint
  daylight* {.importc, header: "<time.h>".}: cint
  timezone* {.importc, header: "<time.h>".}: int

And everything is normally recompiled :)
bye by Andrea

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions