Skip to content

undeclared sched_active_pid #9

@plushvoxel

Description

@plushvoxel

Expected behavior

succesful compilation

Actual behavior

error: ‘sched_active_pid’ undeclared (first use in this function)
    gnrc_netreg_entry_t server = {NULL, 8888, sched_active_pid};

Test code

int main(void){
    ...
    gnrc_netreg_entry_t server = {NULL, 8888, sched_active_pid};
    gnrc_netreg_register(GNRC_NETTYPE_UDP, &server);
    ...
    return 0;
}

RIOT version

RIOT @ 6b768a1

Hardware

native

Quick Fix

#include "sched.h"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions