Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • xfce4-screensaver xfce4-screensaver
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
  • Issues 76
    • Issues 76
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • AppsApps
  • xfce4-screensaverxfce4-screensaver
  • Merge requests
  • !25

Fix build on FreeBSD - Refactor spawn_make_environment_for_display()

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Guido Falsi requested to merge madpilot/xfce4-screensaver:FreeBSD_Build_Fix into master Mar 18, 2023
  • Overview 10
  • Commits 1
  • Pipelines 4
  • Changes 5

On FreeBSD environ needs to be defined in the same source file where it is used.

Linux provides a nonstandard extention to avoid needing the definition.

This patch adds back code which was removed in commit 447b3194 but with #ifdef FreeBSD since it is needed only there.

Ref: https://man7.org/linux/man-pages/man7/environ.7.html https://man.freebsd.org/cgi/man.cgi?query=environ&apropos=0&sektion=0&manpath=FreeBSD+13.1-RELEASE+and+Ports&arch=default&format=html

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: FreeBSD_Build_Fix