Skip to content

syscall is deprecated on iOS, tvOS, watchOS #207

@05nelsonm

Description

@05nelsonm
sqlite3mc.c:280110:7: error: 'syscall' is deprecated: first deprecated in iOS 10.0 - syscall(2) is unsupported; please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost(). [-Werror,-Wdeprecated-declarations]
  if (syscall(SYS_getentropy, buf, n) == 0)
      ^
/Applications/Xcode_16.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.1.sdk/usr/include/unistd.h:740:6: note: 'syscall' has been explicitly marked deprecated here
int      syscall(int, ...);
         ^
1 error generated.

Maybe use instead CCRandomGenerateBytes when #ifdef __APPLE__?

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